Krita Source Code Documentation
Loading...
Searching...
No Matches
KisStorageChooserWidget.h
Go to the documentation of this file.
1
/* This file is part of the KDE project
2
* SPDX-FileCopyrightText: 2019 Wolthera van Hövell tot Westerflier <griffinvalley@gmail.com>
3
*
4
* SPDX-License-Identifier: LGPL-2.0-or-later
5
*/
6
7
#ifndef KISSTORAGECHOOSERWIDGET_H
8
#define KISSTORAGECHOOSERWIDGET_H
9
10
#include <QWidget>
11
#include <QAbstractItemDelegate>
12
#include <
KisPopupButton.h
>
13
14
#include "kritaresourcewidgets_export.h"
15
16
class
KRITARESOURCEWIDGETS_EXPORT
KisStorageChooserDelegate
:
public
QAbstractItemDelegate
17
{
18
Q_OBJECT
19
public
:
20
explicit
KisStorageChooserDelegate
(QObject *parent = 0);
21
~KisStorageChooserDelegate
()
override
{}
22
23
void
paint( QPainter *painter,
const
QStyleOptionViewItem &option,
const
QModelIndex &index )
const override
;
24
25
QSize sizeHint (
const
QStyleOptionViewItem &,
const
QModelIndex & )
const override
;
26
27
};
28
29
30
class
KRITARESOURCEWIDGETS_EXPORT
KisStorageChooserWidget
:
public
KisPopupButton
31
{
32
Q_OBJECT
33
public
:
34
KisStorageChooserWidget
(
const
QString &resourceType, QWidget *parent = 0);
35
36
~KisStorageChooserWidget
();
37
38
private
Q_SLOTS:
39
void
activated(
const
QModelIndex &index);
40
41
private
:
42
QString
m_resourceType
;
43
44
};
45
46
47
#endif
// KISSTORAGECHOOSERWIDGET_H
KisPopupButton.h
KisPopupButton
Definition
KisPopupButton.h:19
KisStorageChooserDelegate
Definition
KisStorageChooserWidget.h:17
KisStorageChooserDelegate::~KisStorageChooserDelegate
~KisStorageChooserDelegate() override
Definition
KisStorageChooserWidget.h:21
KisStorageChooserWidget
Definition
KisStorageChooserWidget.h:31
KisStorageChooserWidget::m_resourceType
QString m_resourceType
Definition
KisStorageChooserWidget.h:42
libs
resourcewidgets
KisStorageChooserWidget.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52