diff options
author | Ivan Komissarov <ABBAPOH@gmail.com> | 2014-05-06 16:36:29 +0400 |
---|---|---|
committer | Ivan Komissarov <ABBAPOH@gmail.com> | 2014-07-10 08:29:10 +0200 |
commit | 84c5e4866f8e825da306b8520f95b124e7c2c3ab (patch) | |
tree | d64bcf39a31de7e0b771c6a8b954591d2ab3c9e7 /src/widgets/widgets/qtabbar.h | |
parent | 5835407df13ecfd8d313eb2b8fc216f8cfe1f9e5 (diff) |
Added autoHide property to QTabBar
This property is used to automatically hide tab bar if it has only one
tab.
Originally-by: Denis Kovalskiy <denimnumber1@gmail.com>
Change-Id: I6967f760010fa55bad6a5986c29abe7ccf625cf8
Reviewed-by: David Faure <david.faure@kdab.com>
Diffstat (limited to 'src/widgets/widgets/qtabbar.h')
-rw-r--r-- | src/widgets/widgets/qtabbar.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/widgets/widgets/qtabbar.h b/src/widgets/widgets/qtabbar.h index a0e52c2f86..a1616b1524 100644 --- a/src/widgets/widgets/qtabbar.h +++ b/src/widgets/widgets/qtabbar.h @@ -70,6 +70,7 @@ 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) public: explicit QTabBar(QWidget* parent=0); @@ -166,6 +167,9 @@ public: bool documentMode() const; void setDocumentMode(bool set); + bool autoHide() const; + void setAutoHide(bool hide); + public Q_SLOTS: void setCurrentIndex(int index); |