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
16class KRITARESOURCEWIDGETS_EXPORT KisStorageChooserDelegate : public QAbstractItemDelegate
17{
18 Q_OBJECT
19public:
20 explicit KisStorageChooserDelegate(QObject *parent = 0);
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
30class KRITARESOURCEWIDGETS_EXPORT KisStorageChooserWidget : public KisPopupButton
31{
32 Q_OBJECT
33public:
34 KisStorageChooserWidget(const QString &resourceType, QWidget *parent = 0);
35
37
38private Q_SLOTS:
39 void activated(const QModelIndex &index);
40
41private:
43
44};
45
46
47#endif // KISSTORAGECHOOSERWIDGET_H