33 inline const QskSkinnable* skinnable()
const {
return m_skinnable; }
36 inline void setSizePolicy(
37 QskSizePolicy::Policy horizontalPolicy,
38 QskSizePolicy::Policy verticalPolicy )
40 setSizePolicy(
QskSizePolicy( horizontalPolicy, verticalPolicy ) );
43 inline void setSizePolicy(
QskSizePolicy policy ) { m_sizePolicy = policy; }
44 inline QskSizePolicy sizePolicy()
const override {
return m_sizePolicy; }
46 virtual Qt::Alignment alignment()
const override;
48 inline void setStretch(
int stretch ) { m_stretch = stretch; }
49 inline int stretch()
const {
return m_stretch; }
51 inline void setGeometry(
const QRectF& rect ) { m_geometry = rect; }
52 inline const QRectF& geometry()
const {
return m_geometry; }
54 void setMaximumSize(
const QSizeF& );
55 void setMinimumSize(
const QSizeF& );
56 void setPreferredSize(
const QSizeF& );
57 void setFixedSize(
const QSizeF& );
59 void setExplicitSizeHint( Qt::SizeHint,
const QSizeF& );
62 QSizeF sizeHint( Qt::SizeHint,
const QSizeF& )
const override;
63 virtual QSizeF implicitSize(
const QSizeF& )
const = 0;
69 QSizeF m_explicitSizeHints[3];
84 inline void setText(
const QString& text ) { m_text = text; }
85 inline QString text()
const {
return m_text; }
88 QSizeF implicitSize(
const QSizeF& )
const override;
100 inline void setSourceSize(
const QSizeF& size ) { m_sourceSize = size; }
101 inline QSizeF sourceSize()
const {
return m_sourceSize; }
103 QSizeF effectiveStrutSize()
const;
106 QSizeF implicitSize(
const QSizeF& )
const override;
114 Qt::Orientation orientation()
const;
115 bool setOrientation( Qt::Orientation );
117 void setSpacing( qreal );
118 qreal spacing()
const;
124 int count() const override final;
127 QskAspect::Subcontrol, const QString& text,
128 QskAspect::Subcontrol, const QSizeF& graphicSize );
133 void setFixedContent(
QskAspect::Subcontrol, Qt::Orientation, Qt::Alignment );
135 QRectF subControlRect(
QskAspect::Subcontrol ) const;
139 void layoutItems() override;
141 int effectiveCount( Qt::Orientation ) const override;
143 void invalidateElementCache() override;
145 virtual
void setupChain( Qt::Orientation,
149 std::unique_ptr< PrivateData > m_data;