Krita Source Code Documentation
Loading...
Searching...
No Matches
KisTagModelProvider.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2019 Agata Cacko <cacko.azh@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6#ifndef KIS_TAG_MODEL_PROVIDER_H
7#define KIS_TAG_MODEL_PROVIDER_H
8
9#include <QObject>
10#include <QAbstractTableModel>
11
12#include <KisTag.h>
13#include <KoResource.h>
14
15#include "kritaresources_export.h"
16#include "KisTagModel.h"
17#include "KisTagResourceModel.h"
18
19class KRITARESOURCES_EXPORT KisTagModelProvider : public QObject
20{
21 Q_OBJECT
22
23public:
24
27
28 static KisTagModel *tagModel(const QString& resourceType);
29 static KisTagResourceModel *tagResourceModel(const QString& resourceType);
30
31private:
32
33 struct Private;
34 Private* const d;
35
36};
37
38#endif // KIS_TAG_MODEL_PROVIDER_H
The KisTagResourceModel class makes it possible to retrieve the resources for certain tags or the tag...