diff options
Diffstat (limited to 'src/widgets/widgets/qtabbar.h')
-rw-r--r-- | src/widgets/widgets/qtabbar.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/widgets/widgets/qtabbar.h b/src/widgets/widgets/qtabbar.h index a0e52c2f86..34c3d93114 100644 --- a/src/widgets/widgets/qtabbar.h +++ b/src/widgets/widgets/qtabbar.h @@ -70,6 +70,8 @@ class Q_WIDGETS_EXPORT QTabBar: public QWidget Q_PROPERTY(bool expanding READ expanding WRITE setExpanding) Q_PROPERTY(bool movable READ isMovable WRITE setMovable) Q_PROPERTY(bool documentMode READ documentMode WRITE setDocumentMode) + Q_PROPERTY(bool autoHide READ autoHide WRITE setAutoHide) + Q_PROPERTY(bool changeCurrentOnDrag READ changeCurrentOnDrag WRITE setChangeCurrentOnDrag) public: explicit QTabBar(QWidget* parent=0); @@ -166,6 +168,12 @@ public: bool documentMode() const; void setDocumentMode(bool set); + bool autoHide() const; + void setAutoHide(bool hide); + + bool changeCurrentOnDrag() const; + void setChangeCurrentOnDrag(bool change); + public Q_SLOTS: void setCurrentIndex(int index); @@ -196,6 +204,7 @@ protected: #endif void keyPressEvent(QKeyEvent *); void changeEvent(QEvent *); + void timerEvent(QTimerEvent *event); void initStyleOption(QStyleOptionTab *option, int tabIndex) const; #ifndef QT_NO_ACCESSIBILITY |