Krita Source Code Documentation
Loading...
Searching...
No Matches
wdgtagpreview.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2023 Srirupa Datta <srirupa.sps@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef WDGTAGPREVIEW_H
8#define WDGTAGPREVIEW_H
9
11#include "KoID.h"
12#include <KisTag.h>
13#include <KoResourceBundle.h>
14
15#include <QWidget>
16
17class KisTag;
19
20namespace Ui {
21class WdgTagPreview;
22}
23
24class WdgTagPreview : public QWidget
25{
26 Q_OBJECT
27
28
29Q_SIGNALS:
30 void tagsAdded(KisTagSP tagSP);
31 void tagsRemoved(KisTagSP tagSP);
32
33public:
34 explicit WdgTagPreview(QString resourceType, KoResourceBundleSP bundle = nullptr, QWidget *parent = nullptr);
36
37public Q_SLOTS:
38 void onTagAdded(KoID custom);
39 void onTagRemoved(KoID custom);
40
41private:
42 Ui::WdgTagPreview *m_ui;
43
47 QLayout* m_layout {nullptr};
49};
50
51#endif // WDGTAGPREVIEW_H
The KisTag loads a tag from a .tag file. A .tag file is a .desktop file. The following fields are imp...
Definition KisTag.h:34
Definition KoID.h:30
void onTagAdded(KoID custom)
WdgTagPreview(QString resourceType, KoResourceBundleSP bundle=nullptr, QWidget *parent=nullptr)
Ui::WdgTagPreview * m_ui
QString m_resourceType
void onTagRemoved(KoID custom)
KisTagSelectionWidget * m_wdgResourcesTags
KoResourceBundleSP m_bundle
QLayout * m_layout
void tagsRemoved(KisTagSP tagSP)
void tagsAdded(KisTagSP tagSP)
KisWdgTagSelectionControllerBundleTags * m_tagsController