27 Q_PROPERTY(qreal implicitWidth READ implicitWidth NOTIFY implicitWidthChanged FINAL)
28 Q_PROPERTY(qreal implicitHeight READ implicitHeight NOTIFY implicitHeightChanged FINAL)
30 qreal leftPadding READ leftPadding WRITE setLeftPadding NOTIFY leftPaddingChanged FINAL)
32 qreal rightPadding READ rightPadding WRITE setRightPadding NOTIFY rightPaddingChanged FINAL)
33 Q_PROPERTY(qreal topPadding READ topPadding WRITE setTopPadding NOTIFY topPaddingChanged FINAL)
34 Q_PROPERTY(qreal bottomPadding READ bottomPadding WRITE setBottomPadding NOTIFY
35 bottomPaddingChanged FINAL)
37 Qt::Alignment alignment READ alignment WRITE setAlignment NOTIFY alignmentChanged FINAL)
38 Q_PROPERTY(Qt::LayoutDirection layoutDirection READ layoutDirection WRITE setLayoutDirection
39 NOTIFY layoutDirectionChanged FINAL)
40 Q_PROPERTY(Qt::LayoutDirection effectiveLayoutDirection READ effectiveLayoutDirection NOTIFY
41 effectiveLayoutDirectionChanged FINAL)
42 Q_PROPERTY(qreal contentWidth READ contentWidth NOTIFY contentWidthChanged FINAL)
43 Q_PROPERTY(qreal contentHeight READ contentHeight NOTIFY contentHeightChanged FINAL)
48 qreal leftPadding()
const;
49 void setLeftPadding(qreal padding);
50 qreal rightPadding()
const;
51 void setRightPadding(qreal padding);
52 qreal topPadding()
const;
53 void setTopPadding(qreal padding);
54 qreal bottomPadding()
const;
55 void setBottomPadding(qreal padding);
57 Qt::Alignment alignment()
const;
58 void setAlignment(Qt::Alignment alignment);
60 Qt::LayoutDirection layoutDirection()
const;
61 void setLayoutDirection(Qt::LayoutDirection direction);
62 Qt::LayoutDirection effectiveLayoutDirection()
const;
64 qreal contentWidth()
const;
65 qreal contentHeight()
const;
67 Q_SIGNAL
void leftPaddingChanged();
68 Q_SIGNAL
void rightPaddingChanged();
69 Q_SIGNAL
void topPaddingChanged();
70 Q_SIGNAL
void bottomPaddingChanged();
71 Q_SIGNAL
void alignmentChanged();
72 Q_SIGNAL
void layoutDirectionChanged();
73 Q_SIGNAL
void effectiveLayoutDirectionChanged();
74 Q_SIGNAL
void contentWidthChanged();
75 Q_SIGNAL
void contentHeightChanged();
87 qreal linearSpacing()
const;
88 bool setLinearSpacing(qreal spacing);
90 void componentComplete()
override;
91 void geometryChange(
const QRectF& newGeometry,
const QRectF& oldGeometry)
override;
92 void itemChange(ItemChange change,
const ItemChangeData& data)
override;
93 void updatePolish()
override;
96 friend class LayoutContainerPrivate;
97 const std::unique_ptr<LayoutContainerPrivate> d;