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 Q_PROPERTY(
bool asynchronous READ asynchronous WRITE setAsynchronous NOTIFY asynchronousChanged)
34 Q_PROPERTY(
bool cache READ cache WRITE setCache NOTIFY cacheChanged FINAL)
35#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
36 QML_NAMED_ELEMENT(DciIcon)
45 void setName(
const QString &name);
47 DQMLGlobalObject::ControlState mode()
const;
48 void setMode(DQMLGlobalObject::ControlState mode);
49 Q_INVOKABLE
void play(DQMLGlobalObject::ControlState mode);
51 DGuiApplicationHelper::ColorType theme()
const;
52 void setTheme(DGuiApplicationHelper::ColorType theme);
54 DDciIconPalette palette()
const;
55 void setPalette(
const DDciIconPalette &palette);
57 QSize sourceSize()
const;
58 void setSourceSize(
const QSize &size);
60 void setMirror(
bool mirror);
63 bool fallbackToQIcon()
const;
64 void setFallbackToQIcon(
bool newFallbackToQIcon);
66 bool asynchronous()
const;
67 void setAsynchronous(
bool async);
70 void setCache(
bool cache);
74 static bool isNull(
const QString &iconName);
81 void paletteChanged();
82 void sourceSizeChanged();
84 void fallbackToQIconChanged();
85 void asynchronousChanged();
89 void classBegin()
override;
90 void componentComplete()
override;
98 Q_PROPERTY(DTK_QUICK_NAMESPACE::DQMLGlobalObject::ControlState mode READ mode WRITE setMode NOTIFY modeChanged)
99 Q_PROPERTY(DTK_GUI_NAMESPACE::DGuiApplicationHelper::ColorType theme READ theme WRITE setTheme NOTIFY themeChanged)
100 Q_PROPERTY(DTK_GUI_NAMESPACE::DDciIconPalette palette READ palette WRITE setPalette NOTIFY paletteChanged)
101 Q_PROPERTY(
bool fallbackToQIcon READ fallbackToQIcon WRITE setFallbackToQIcon NOTIFY fallbackToQIconChanged)
107 DQMLGlobalObject::ControlState mode()
const;
108 void setMode(DQMLGlobalObject::ControlState mode);
110 DGuiApplicationHelper::ColorType theme()
const;
111 void setTheme(DGuiApplicationHelper::ColorType theme);
113 DDciIconPalette palette()
const;
114 void setPalette(
const DDciIconPalette &palette);
116 bool fallbackToQIcon()
const;
117 void setFallbackToQIcon(
bool newFallbackToQIcon);
122 void paletteChanged();
123 void fallbackToQIconChanged();