30 Q_PROPERTY(QFont font READ font WRITE setFont NOTIFY fontChanged)
31 Q_PROPERTY(QQuickItem *background READ background WRITE setBackground NOTIFY backgroundChanged FINAL)
33 Q_PROPERTY(qreal implicitBackgroundWidth READ implicitBackgroundWidth NOTIFY implicitBackgroundWidthChanged FINAL REVISION(2, 5))
34 Q_PROPERTY(qreal implicitBackgroundHeight READ implicitBackgroundHeight NOTIFY implicitBackgroundHeightChanged FINAL REVISION(2, 5))
35 Q_PROPERTY(qreal topInset READ topInset WRITE setTopInset RESET resetTopInset NOTIFY topInsetChanged FINAL REVISION(2, 5))
36 Q_PROPERTY(qreal leftInset READ leftInset WRITE setLeftInset RESET resetLeftInset NOTIFY leftInsetChanged FINAL REVISION(2, 5))
37 Q_PROPERTY(qreal rightInset READ rightInset WRITE setRightInset RESET resetRightInset NOTIFY rightInsetChanged FINAL REVISION(2, 5))
38 Q_PROPERTY(qreal bottomInset READ bottomInset WRITE setBottomInset RESET resetBottomInset NOTIFY bottomInsetChanged FINAL REVISION(2, 5))
39 Q_CLASSINFO(
"DeferredPropertyNames",
"background")
40 QML_NAMED_ELEMENT(Label)
41 QML_ADDED_IN_VERSION(2, 0)
44 explicit QQuickLabel(QQuickItem *parent =
nullptr);
48 void setFont(
const QFont &font);
50 QQuickItem *background()
const;
51 void setBackground(QQuickItem *background);
54 qreal implicitBackgroundWidth()
const;
55 qreal implicitBackgroundHeight()
const;
57 qreal topInset()
const;
58 void setTopInset(qreal inset);
61 qreal leftInset()
const;
62 void setLeftInset(qreal inset);
63 void resetLeftInset();
65 qreal rightInset()
const;
66 void setRightInset(qreal inset);
67 void resetRightInset();
69 qreal bottomInset()
const;
70 void setBottomInset(qreal inset);
71 void resetBottomInset();
75 void backgroundChanged();
77 Q_REVISION(2, 5)
void implicitBackgroundWidthChanged();
78 Q_REVISION(2, 5)
void implicitBackgroundHeightChanged();
79 Q_REVISION(2, 5)
void topInsetChanged();
80 Q_REVISION(2, 5)
void leftInsetChanged();
81 Q_REVISION(2, 5)
void rightInsetChanged();
82 Q_REVISION(2, 5)
void bottomInsetChanged();
85 void classBegin() override;
86 void componentComplete() override;
88 void itemChange(ItemChange change,
const ItemChangeData &value) override;
89 void geometryChange(
const QRectF &newGeometry,
const QRectF &oldGeometry) override;
90 virtual void insetChange(
const QMarginsF &newInset,
const QMarginsF &oldInset);
93 Q_DISABLE_COPY(QQuickLabel)
94 Q_DECLARE_PRIVATE(QQuickLabel)