17 Q_PROPERTY(
int currentIndex READ currentIndex
18 WRITE setCurrentIndex NOTIFY currentIndexChanged )
20 Q_PROPERTY( qreal transientIndex READ transientIndex
21 NOTIFY transientIndexChanged )
23 Q_PROPERTY( QQuickItem* currentItem READ currentItem
24 WRITE setCurrentItem NOTIFY currentItemChanged )
29 explicit QskStackBox( QQuickItem* parent =
nullptr );
30 QskStackBox(
bool autoAddChildren, QQuickItem* parent =
nullptr );
36 int itemCount()
const;
37 QQuickItem* itemAtIndex(
int index )
const;
38 int indexOf(
const QQuickItem* )
const;
40 void addItem( QQuickItem* );
41 void addItem( QQuickItem*, Qt::Alignment );
43 void insertItem(
int index, QQuickItem* );
44 void insertItem(
int index, QQuickItem*, Qt::Alignment );
46 void removeItem(
const QQuickItem* );
47 void removeAt(
int index );
49 QQuickItem* currentItem()
const;
50 int currentIndex()
const;
52 qreal transientIndex()
const;
54 void setDefaultAlignment( Qt::Alignment );
55 Qt::Alignment defaultAlignment()
const;
61 QRectF geometryForItemAt(
int index )
const;
66 void defaultAlignmentChanged( Qt::Alignment );
69 void setCurrentIndex(
int index );
70 void setCurrentItem(
const QQuickItem* );
71 void clear(
bool autoDelete =
false );
74 void currentIndexChanged(
int index );
75 void transientIndexChanged( qreal index );
76 void currentItemChanged( QQuickItem* );
79 bool event( QEvent* )
override;
80 void updateLayout()
override;
82 QSizeF layoutSizeHint( Qt::SizeHint,
const QSizeF& )
const override;
87 void autoAddItem( QQuickItem* )
override final;
88 void autoRemoveItem( QQuickItem* )
override final;
90 void removeItemInternal(
int index,
bool unparent );
93 std::unique_ptr< PrivateData > m_data;