19 Q_PROPERTY(
QskTabBar* tabBar READ tabBar )
21 Q_PROPERTY( Qt::Edge tabBarEdge READ tabBarEdge
22 WRITE setTabBarEdge NOTIFY tabBarEdgeChanged FINAL )
24 Q_PROPERTY(
bool autoFitTabs READ autoFitTabs
25 WRITE setAutoFitTabs NOTIFY autoFitTabsChanged FINAL )
27 Q_PROPERTY( Qt::Orientation orientation READ orientation )
29 Q_PROPERTY(
int count READ count NOTIFY countChanged FINAL )
31 Q_PROPERTY(
int currentIndex READ currentIndex
32 WRITE setCurrentIndex NOTIFY currentIndexChanged FINAL )
37 QSK_SUBCONTROLS( TabBar, Page )
45 void setTabBarEdge( Qt::Edge );
46 Qt::Edge tabBarEdge()
const;
48 void setAutoFitTabs(
bool );
49 bool autoFitTabs()
const;
51 Qt::Orientation orientation()
const;
53 Q_INVOKABLE
int addTab(
const QString&, QQuickItem* );
54 Q_INVOKABLE
int insertTab(
int index,
const QString&, QQuickItem* );
56 Q_INVOKABLE
void removeTab(
int index );
57 Q_INVOKABLE
void clear(
bool autoDelete =
false );
59 QQuickItem* pageAt(
int index )
const;
60 int pageIndex(
const QQuickItem* );
62 QQuickItem* currentPage()
const;
64 int currentIndex()
const;
67 QRectF tabRect()
const;
71 void setTabEnabled(
int ,
bool );
72 bool isTabEnabled(
int index )
const;
86 void setCurrentIndex(
int index );
89 void currentIndexChanged(
int index );
90 void countChanged(
int );
91 void tabBarEdgeChanged( Qt::Edge );
92 void autoFitTabsChanged(
bool );
95 bool event( QEvent* event )
override;
96 void updateLayout()
override;
98 QSizeF layoutSizeHint( Qt::SizeHint,
const QSizeF& )
const override;
102 std::unique_ptr< PrivateData > m_data;