26 Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged FINAL)
27 Q_PROPERTY(DTK_QUICK_NAMESPACE::DQMLGlobalObject::ControlState mode READ mode WRITE setMode NOTIFY modeChanged FINAL)
28 Q_PROPERTY(DTK_GUI_NAMESPACE::DGuiApplicationHelper::ColorType theme READ theme WRITE setTheme NOTIFY themeChanged FINAL)
29 Q_PROPERTY(DTK_GUI_NAMESPACE::DDciIconPalette palette READ palette WRITE setPalette NOTIFY paletteChanged)
30 Q_PROPERTY(QSize sourceSize READ sourceSize WRITE setSourceSize NOTIFY sourceSizeChanged)
31 Q_PROPERTY(
bool mirror READ mirror WRITE setMirror NOTIFY mirrorChanged)
32 Q_PROPERTY(
bool fallbackToQIcon READ fallbackToQIcon WRITE setFallbackToQIcon NOTIFY fallbackToQIconChanged)
33#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
34 QML_NAMED_ELEMENT(DciIcon)
43 void setName(
const QString &name);
45 DQMLGlobalObject::ControlState mode()
const;
46 void setMode(DQMLGlobalObject::ControlState mode);
48 DGuiApplicationHelper::ColorType theme()
const;
49 void setTheme(DGuiApplicationHelper::ColorType theme);
51 DDciIconPalette palette()
const;
52 void setPalette(
const DDciIconPalette &palette);
54 QSize sourceSize()
const;
55 void setSourceSize(
const QSize &size);
57 void setMirror(
bool mirror);
60 bool fallbackToQIcon()
const;
61 void setFallbackToQIcon(
bool newFallbackToQIcon);
65 static bool isNull(
const QString &iconName);
72 void paletteChanged();
73 void sourceSizeChanged();
75 void fallbackToQIconChanged();
78 void classBegin()
override;
79 void componentComplete()
override;
87 Q_PROPERTY(DTK_QUICK_NAMESPACE::DQMLGlobalObject::ControlState mode READ mode WRITE setMode NOTIFY modeChanged)
88 Q_PROPERTY(DTK_GUI_NAMESPACE::DGuiApplicationHelper::ColorType theme READ theme WRITE setTheme NOTIFY themeChanged)
89 Q_PROPERTY(DTK_GUI_NAMESPACE::DDciIconPalette palette READ palette WRITE setPalette NOTIFY paletteChanged)
90 Q_PROPERTY(
bool fallbackToQIcon READ fallbackToQIcon WRITE setFallbackToQIcon NOTIFY fallbackToQIconChanged)
96 DQMLGlobalObject::ControlState mode()
const;
97 void setMode(DQMLGlobalObject::ControlState mode);
99 DGuiApplicationHelper::ColorType theme()
const;
100 void setTheme(DGuiApplicationHelper::ColorType theme);
102 DDciIconPalette palette()
const;
103 void setPalette(
const DDciIconPalette &palette);
105 bool fallbackToQIcon()
const;
106 void setFallbackToQIcon(
bool newFallbackToQIcon);
111 void paletteChanged();
112 void fallbackToQIconChanged();