21 Q_PROPERTY(DTK_QUICK_NAMESPACE::DQuickDciIcon icon READ icon WRITE setIcon FINAL)
22 Q_PROPERTY(QString text READ text WRITE setText FINAL)
23 Q_PROPERTY(QFont font READ font WRITE setFont FINAL)
24 Q_PROPERTY(QColor color READ color WRITE setColor FINAL)
25 Q_PROPERTY(Display display READ display WRITE setDisplay FINAL)
26 Q_PROPERTY(qreal spacing READ spacing WRITE setSpacing FINAL)
27 Q_PROPERTY(
bool mirrored READ isMirrored WRITE setMirrored FINAL)
28 Q_PROPERTY(Qt::Alignment alignment READ alignment WRITE setAlignment FINAL)
29 Q_PROPERTY(qreal topPadding READ topPadding WRITE setTopPadding RESET resetTopPadding FINAL)
30 Q_PROPERTY(qreal leftPadding READ leftPadding WRITE setLeftPadding RESET resetLeftPadding FINAL)
31 Q_PROPERTY(qreal rightPadding READ rightPadding WRITE setRightPadding RESET resetRightPadding FINAL)
32 Q_PROPERTY(qreal bottomPadding READ bottomPadding WRITE setBottomPadding RESET resetBottomPadding FINAL)
34#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
35 QML_NAMED_ELEMENT(IconLabel)
54 void setText(
const QString &text);
57 void setFont(
const QFont &font);
60 void setColor(
const QColor &color);
62 Display display()
const;
63 void setDisplay(Display display);
65 qreal spacing()
const;
66 void setSpacing(qreal spacing);
68 bool isMirrored()
const;
69 void setMirrored(
bool mirrored);
71 Qt::Alignment alignment()
const;
72 void setAlignment(Qt::Alignment alignment);
74 qreal topPadding()
const;
75 void setTopPadding(qreal padding);
76 void resetTopPadding();
78 qreal leftPadding()
const;
79 void setLeftPadding(qreal padding);
80 void resetLeftPadding();
82 qreal rightPadding()
const;
83 void setRightPadding(qreal padding);
84 void resetRightPadding();
86 qreal bottomPadding()
const;
87 void setBottomPadding(qreal padding);
88 void resetBottomPadding();
91 void componentComplete()
override;
92#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
93 void geometryChanged(
const QRectF &newGeometry,
const QRectF &oldGeometry)
override;
95 void geometryChange(
const QRectF &newGeometry,
const QRectF &oldGeometry)
override;