26 Q_PROPERTY( QLocale locale READ locale
27 WRITE setLocale RESET resetLocale NOTIFY localeChanged )
29 Q_PROPERTY( QskAspect::Section section READ section
30 WRITE setSection RESET resetSection NOTIFY sectionChanged )
32 Q_PROPERTY(
bool autoLayoutChildren READ autoLayoutChildren
33 WRITE setAutoLayoutChildren )
35 Q_PROPERTY(
bool visibleToLayout READ isVisibleToLayout )
38 WRITE setMargins RESET resetMargins NOTIFY marginsChanged )
41 WRITE setBackground RESET resetBackground NOTIFY backgroundChanged )
43 Q_PROPERTY(
QskSizePolicy sizePolicy READ sizePolicy WRITE setSizePolicy )
45 WRITE setPlacementPolicy RESET resetPlacementPolicy )
47 Q_PROPERTY( QSizeF minimumSize READ minimumSize WRITE setMinimumSize )
48 Q_PROPERTY( QSizeF maximumSize READ maximumSize WRITE setMaximumSize )
49 Q_PROPERTY( QSizeF preferredSize READ preferredSize WRITE setPreferredSize )
50 Q_PROPERTY( QSizeF sizeConstraint READ sizeConstraint )
55 QSK_SUBCONTROLS( Background )
56 QSK_STATES( Disabled, Hovered, Focused )
61 void setMargins( qreal );
62 void setMargins( qreal, qreal, qreal, qreal );
63 void setMargins( const QMarginsF& );
65 QMarginsF margins() const;
68 void resetBackground();
71 void setBackgroundColor( const QColor& );
73 QRectF contentsRect() const;
74 QRectF layoutRect() const;
76 virtual QRectF layoutRectForSize( const QSizeF& ) const;
78 virtual QRectF focusIndicatorRect() const;
79 virtual QRectF focusIndicatorClipRect() const;
82 QRectF subControlRect(
QskAspect::Subcontrol ) const;
83 QRectF subControlRect( const QSizeF&,
QskAspect::Subcontrol ) const;
86 QRectF subControlContentsRect(
QskAspect::Subcontrol ) const;
87 QRectF subControlContentsRect( const QSizeF&,
QskAspect::Subcontrol ) const;
89 void setAutoLayoutChildren(
bool );
90 bool autoLayoutChildren() const;
94 QskAspect::Section section() const override final;
104 void setLayoutAlignmentHint( Qt::Alignment );
105 Qt::Alignment layoutAlignmentHint() const;
110 void resetPlacementPolicy();
117 bool isVisibleToLayout() const;
119 void setMinimumSize( const QSizeF& );
120 void setMinimumSize( qreal width, qreal height );
121 void setMinimumWidth( qreal width );
122 void setMinimumHeight( qreal height );
124 void setMaximumSize( const QSizeF& );
125 void setMaximumSize( qreal width, qreal height );
126 void setMaximumWidth( qreal width );
127 void setMaximumHeight( qreal height );
129 void setPreferredSize( const QSizeF& );
130 void setPreferredSize( qreal width, qreal height );
131 void setPreferredWidth( qreal width );
132 void setPreferredHeight( qreal height );
134 void setFixedSize( const QSizeF& );
135 void setFixedSize( qreal width, qreal height );
136 void setFixedWidth( qreal width );
137 void setFixedHeight( qreal height );
139 void setExplicitSizeHint( Qt::SizeHint, const QSizeF& );
140 void setExplicitSizeHint( Qt::SizeHint, qreal width, qreal height );
141 void resetExplicitSizeHint( Qt::SizeHint );
143 QSizeF minimumSize() const;
144 QSizeF maximumSize() const;
145 QSizeF preferredSize() const;
147 QSizeF explicitSizeHint( Qt::SizeHint ) const;
148 QSizeF implicitSizeHint( Qt::SizeHint, const QSizeF& constraint ) const;
150 QSizeF sizeHint() const;
151 qreal heightForWidth( qreal width ) const;
152 qreal widthForHeight( qreal height ) const;
154 QSizeF effectiveSizeHint( Qt::SizeHint,
155 const QSizeF& constraint = QSizeF() ) const;
157 QSizeF sizeConstraint( Qt::SizeHint, const QSizeF& constraint = QSizeF() ) const;
158 QSizeF sizeConstraint() const;
160 QLocale locale() const;
163 QVector<
QskAspect::Subcontrol > subControls() const;
166 void backgroundChanged();
167 void sectionChanged(
QskAspect::Section );
168 void marginsChanged( const QMarginsF& );
169 void focusIndicatorRectChanged();
170 void localeChanged( const QLocale& );
173 void setLocale( const QLocale& );
176 bool event( QEvent* ) override;
180 void hoverEnterEvent( QHoverEvent* ) override;
181 void hoverLeaveEvent( QHoverEvent* ) override;
183 bool childMouseEventFilter( QQuickItem*, QEvent* ) override;
185 void itemChange( ItemChange, const ItemChangeData& ) override;
186 void geometryChange( const QRectF&, const QRectF& ) override;
191 virtual
void updateResources();
192 virtual
void updateLayout();
194 virtual QSizeF contentsSizeHint( Qt::SizeHint, const QSizeF& ) const;
195 virtual QSizeF layoutSizeHint( Qt::SizeHint, const QSizeF& ) const;
198 void updateInputMethod( Qt::InputMethodQueries ) = delete;
200 QSGNode* updateItemPaintNode( QSGNode* ) override final;
201 void updateItemPolish() override final;
203 QskControl* owningItem() const override final;