32 public QSafeQuickItemChangeListener<QQuickLabelPrivate>
33#if QT_CONFIG(accessibility)
34 ,
public QAccessible::ActivationObserver
38 Q_DECLARE_PUBLIC(QQuickLabel)
41 ~QQuickLabelPrivate();
43 static QQuickLabelPrivate *get(QQuickLabel *item)
45 return static_cast<QQuickLabelPrivate *>(QObjectPrivate::get(item));
48 inline QMarginsF getInset()
const {
return QMarginsF(getLeftInset(), getTopInset(), getRightInset(), getBottomInset()); }
49 inline qreal getTopInset()
const {
return extra.isAllocated() ? extra->topInset : 0; }
50 inline qreal getLeftInset()
const {
return extra.isAllocated() ? extra->leftInset : 0; }
51 inline qreal getRightInset()
const {
return extra.isAllocated() ? extra->rightInset : 0; }
52 inline qreal getBottomInset()
const {
return extra.isAllocated() ? extra->bottomInset : 0; }
54 void setTopInset(qreal value,
bool reset =
false);
55 void setLeftInset(qreal value,
bool reset =
false);
56 void setRightInset(qreal value,
bool reset =
false);
57 void setBottomInset(qreal value,
bool reset =
false);
59 void resizeBackground();
62 void inheritFont(
const QFont &font);
63 void updateFont(
const QFont &font);
64 inline void setFont_helper(
const QFont &font) {
65 if (sourceFont.resolveMask() == font.resolveMask() && sourceFont == font)
70 void textChanged(
const QString &text);
72#if QT_CONFIG(accessibility)
73 void accessibilityActiveChanged(
bool active) override;
74 QAccessible::Role accessibleRole()
const override;
75 void maybeSetAccessibleName(
const QString &name);
78 void cancelBackground();
79 void executeBackground(
bool complete =
false);
81 void itemGeometryChanged(QQuickItem *item, QQuickGeometryChange change,
const QRectF &diff) override;
82 void itemImplicitWidthChanged(QQuickItem *item) override;
83 void itemImplicitHeightChanged(QQuickItem *item) override;
84 void itemDestroyed(QQuickItem *item) override;
86 QPalette defaultPalette()
const override;
89 bool hasTopInset =
false;
90 bool hasLeftInset =
false;
91 bool hasRightInset =
false;
92 bool hasBottomInset =
false;
93 bool hasBackgroundWidth =
false;
94 bool hasBackgroundHeight =
false;
98 qreal bottomInset = 0;
101 QLazilyAllocated<ExtraData> extra;
103 bool resizingBackground =
false;
104 QPalette resolvedPalette;
105 QQuickDeferredPointer<QQuickItem> background;