8#include <QtWidgets/qdialog.h>
10#include <QtGui/qpixmap.h>
20class QDesignerFormEditorInterface;
24class DesignerPixmapCache;
26class IconThemeEnumEditor;
27class PropertySheetIconValue;
35 explicit IconThemeDialog(
QWidget *parent);
36 IconThemeEditor *m_editor;
46 IconThemeEnumDialog(
QWidget *parent);
47 IconThemeEnumEditor *m_editor;
62 static QString
displayText(
const PropertySheetIconValue &icon);
81 void resourceActionActivated();
82 void fileActionActivated();
83 void themeEnumActionActivated();
84 void themeActionActivated();
85#if QT_CONFIG(clipboard)
101 static State stateFromData(
int themeEnum,
const QString &xdgTheme,
const QString &path);
103 static QString displayText(
int themeEnum,
const QString &xdgTheme,
const QString &path);
106 bool m_iconThemeModeEnabled;
107 QDesignerFormEditorInterface *m_core;
108 QLabel *m_pixmapLabel;
110 QToolButton *m_button;
111 QAction *m_resourceAction;
112 QAction *m_fileAction;
113 QAction *m_themeEnumAction;
114 QAction *m_themeAction;
115 QAction *m_copyAction;
116 QAction *m_pasteAction;
117 QHBoxLayout *m_layout;
118 QPixmap m_defaultPixmap;
121 int m_themeEnum = -1;
122 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