7#include <QtWidgets/qdialog.h>
9#include <QtGui/qpixmap.h>
19class QDesignerFormEditorInterface;
23class DesignerPixmapCache;
25class IconThemeEnumEditor;
26class PropertySheetIconValue;
34 explicit IconThemeDialog(
QWidget *parent);
35 IconThemeEditor *m_editor;
45 IconThemeEnumDialog(
QWidget *parent);
46 IconThemeEnumEditor *m_editor;
61 static QString
displayText(
const PropertySheetIconValue &icon);
80 void resourceActionActivated();
81 void fileActionActivated();
82 void themeEnumActionActivated();
83 void themeActionActivated();
84#if QT_CONFIG(clipboard)
100 static State stateFromData(
int themeEnum,
const QString &xdgTheme,
const QString &path);
102 static QString displayText(
int themeEnum,
const QString &xdgTheme,
const QString &path);
105 bool m_iconThemeModeEnabled;
106 QDesignerFormEditorInterface *m_core;
107 QLabel *m_pixmapLabel;
109 QToolButton *m_button;
110 QAction *m_resourceAction;
111 QAction *m_fileAction;
112 QAction *m_themeEnumAction;
113 QAction *m_themeAction;
114 QAction *m_copyAction;
115 QAction *m_pasteAction;
116 QHBoxLayout *m_layout;
117 QPixmap m_defaultPixmap;
120 int m_themeEnum = -1;
121 DesignerPixmapCache *m_pixmapCache;
static QString msgMissingThemeIcon(const QString &t)
void setTheme(const QString &theme)
void setDefaultPixmap(const QPixmap &pixmap)
static QString displayText(const PropertySheetIconValue &icon)
void setSpacing(int spacing)
void setPixmapCache(DesignerPixmapCache *cache)
static QString msgThemeIcon(const QString &t)
void setDefaultPixmapIcon(const QIcon &icon)
void setIconThemeModeEnabled(bool enabled)
void contextMenuEvent(QContextMenuEvent *event) override
This event handler, for event event, can be reimplemented in a subclass to receive widget context men...
void themeEnumChanged(int themeEnum)
void themeChanged(const QString &theme)
static constexpr auto defaultResourceAttributeC
static constexpr auto themeEnumAttributeC
static constexpr auto flagsAttributeC
static constexpr auto validationModesAttributeC
static constexpr auto resettableAttributeC
static constexpr auto themeAttributeC
static constexpr auto superPaletteAttributeC
static constexpr auto fontAttributeC
Combined button and popup list for selecting options.
Auxiliary methods to store/retrieve settings.
#define QT_PROPERTYEDITOR_EXPORT