25 Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged FINAL)
26 Q_PROPERTY(Mode mode READ mode WRITE setMode NOTIFY modeChanged FINAL)
27 Q_PROPERTY(State state READ state WRITE setState NOTIFY stateChanged FINAL)
28 Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged FINAL)
29 Q_PROPERTY(QUrl fallbackSource READ fallbackSource WRITE setFallbackSource NOTIFY fallbackSourceChanged FINAL)
31#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
32 QML_NAMED_ELEMENT(QtIcon)
36 Invalid = QIcon::Normal - 1,
37 Normal = QIcon::Normal,
38 Disabled = QIcon::Disabled,
39 Active = QIcon::Active,
40 Selected = QIcon::Selected
53 void componentComplete()
override;
60 const QUrl &fallbackSource()
const;
63 void setName(
const QString &name);
64 void setState(State state);
65 void setMode(Mode mode);
66 void setColor(
const QColor &color);
67 void setFallbackSource(
const QUrl &newSource);
74 void fallbackSourceChanged();
78 void itemChange(ItemChange change,
const ItemChangeData &value)
override;
79 void pixmapChange()
override;
84 Q_PRIVATE_SLOT(d_func(),
void maybeUpdateUrl())