Krita Source Code Documentation
Loading...
Searching...
No Matches
KisResourceTypeModel.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2018 boud <boud@valdyas.org>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6#ifndef KISRESOURCETYPEMODEL_H
7#define KISRESOURCETYPEMODEL_H
8
9#include <QAbstractTableModel>
10#include <QObject>
11
12#include "kritaresources_export.h"
13
19class KRITARESOURCES_EXPORT KisResourceTypeModel : public QAbstractTableModel
20{
21 Q_OBJECT
22public:
23
24 enum Columns {
25 Id = 0,
28 };
29
30 KisResourceTypeModel(QObject *parent = 0);
31 ~KisResourceTypeModel() override;
32
33 int rowCount(const QModelIndex &parent = QModelIndex()) const override;
34 int columnCount(const QModelIndex &parent = QModelIndex()) const override;
35 QVariant data(const QModelIndex &index, int role) const override;
36
37private:
38
39 bool prepareQuery();
40
41 struct Private;
42 Private* const d;
43
44};
45
46#endif // KISRESOURCETYPEMODEL_H