19 Q_PROPERTY( Qt::Edge edge READ edge
20 WRITE setEdge RESET resetEdge NOTIFY edgeChanged FINAL )
22 Q_PROPERTY( Qt::Orientation orientation READ orientation )
24 Q_PROPERTY(
bool autoScrollFocusButton READ autoScrollFocusButton
25 WRITE setAutoScrollFocusedButton NOTIFY autoScrollFocusedButtonChanged FINAL )
27 Q_PROPERTY(
bool autoFitTabs READ autoFitTabs
28 WRITE setAutoFitTabs NOTIFY autoFitTabsChanged FINAL )
30 Q_PROPERTY(
int count READ count NOTIFY countChanged FINAL )
32 Q_PROPERTY(
int currentIndex READ currentIndex
33 WRITE setCurrentIndex NOTIFY currentIndexChanged USER
true FINAL )
36 WRITE setTextOptions NOTIFY textOptionsChanged )
41 QSK_SUBCONTROLS( Panel )
43 QskTabBar( QQuickItem* parent =
nullptr );
44 QskTabBar( Qt::Edge, QQuickItem* parent =
nullptr );
48 void setEdge( Qt::Edge );
50 Qt::Edge edge()
const;
52 Qt::Orientation orientation()
const;
54 void setAutoScrollFocusedButton(
bool );
55 bool autoScrollFocusButton()
const;
57 void setAutoFitTabs(
bool );
58 bool autoFitTabs()
const;
65 Q_INVOKABLE
int addTab(
const QString& text );
66 Q_INVOKABLE
int insertTab(
int index,
const QString& text );
71 Q_INVOKABLE
void removeTab(
int index );
72 Q_INVOKABLE
void clear(
bool autoDelete =
false );
74 bool isTabEnabled(
int index )
const;
75 void setTabEnabled(
int index,
bool );
77 int currentIndex()
const;
86 Q_INVOKABLE QString currentButtonText()
const;
87 Q_INVOKABLE QString buttonTextAt(
int index )
const;
95 void setCurrentIndex(
int index );
98 void currentIndexChanged(
int index );
99 void buttonClicked(
int index );
100 void countChanged(
int );
102 void edgeChanged( Qt::Edge );
103 void autoScrollFocusedButtonChanged(
bool );
104 void autoFitTabsChanged(
bool );
113 void adjustCurrentIndex();
114 void handleButtonClick();
117 std::unique_ptr< PrivateData > m_data;