summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets/qtabwidget.h
diff options
context:
space:
mode:
authorJordi Pujol Foyo <jordi@vikingsoftware.com>2019-03-06 16:46:21 +0100
committerJordi Pujol Foyo <jordi@vikingsoftware.com>2019-12-20 09:41:09 +0000
commit556712f511a02ff8101e648d2e6f0090231d4f3d (patch)
treeb1b1798d50177c9fdbf95b7d528e14c2506e9a8c /src/widgets/widgets/qtabwidget.h
parent23d4c0c34b37d9d6d94fedd2fc7316c34a66f10d (diff)
Allow hiding tabs in QTabWidget / QTabBar
Add 2 methods to set/ask if a tab is hidden. [ChangeLog][QtWidgets][QTabWidget/QTabBar] Tabs can now be hidden with setTabVisible Fixes: QTBUG-63038 Change-Id: I7b07ecdb485e1f6c085d03515ef2b73baae889de Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de>
Diffstat (limited to 'src/widgets/widgets/qtabwidget.h')
-rw-r--r--src/widgets/widgets/qtabwidget.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/widgets/widgets/qtabwidget.h b/src/widgets/widgets/qtabwidget.h
index f55e71488b..e6b3f93303 100644
--- a/src/widgets/widgets/qtabwidget.h
+++ b/src/widgets/widgets/qtabwidget.h
@@ -82,6 +82,9 @@ public:
bool isTabEnabled(int index) const;
void setTabEnabled(int index, bool);
+ bool isTabVisible(int index) const;
+ void setTabVisible(int index, bool);
+
QString tabText(int index) const;
void setTabText(int index, const QString &);