34 Q_PROPERTY(QString name READ name WRITE setName RESET resetName FINAL)
35 Q_PROPERTY(QUrl source READ source WRITE setSource RESET resetSource FINAL)
36 Q_PROPERTY(
int width READ width WRITE setWidth RESET resetWidth FINAL)
37 Q_PROPERTY(
int height READ height WRITE setHeight RESET resetHeight FINAL)
38 Q_PROPERTY(QColor color READ color WRITE setColor RESET resetColor FINAL)
39 Q_PROPERTY(
bool cache READ cache WRITE setCache RESET resetCache FINAL)
41 QML_ADDED_IN_VERSION(2, 3)
45 QQuickIcon(
const QQuickIcon &other);
48 QQuickIcon& operator=(
const QQuickIcon &other);
49 bool operator==(
const QQuickIcon &other)
const;
50 bool operator!=(
const QQuickIcon &other)
const;
55 void setName(
const QString &name);
59 void setSource(
const QUrl &source);
61 QUrl resolvedSource()
const;
62 void ensureRelativeSourceResolved(
const QObject *owner);
65 void setWidth(
int width);
69 void setHeight(
int height);
73 void setColor(
const QColor &color);
77 void setCache(
bool cache);
80 QQuickIcon resolve(
const QQuickIcon &other)
const;
83 QExplicitlySharedDataPointer<QQuickIconPrivate> d;