From 8e5a2533b5777233cc8c3dbdf402b1da2ced15aa Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 21 Sep 2010 12:19:43 +0000 Subject: [PATCH] save the state of tabBarShown: prevents tabbar to reappear when it shouldn't svn path=/trunk/KDE/kdelibs/; revision=1177838 --- widgets/tabbar.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/widgets/tabbar.cpp b/widgets/tabbar.cpp index 790dd233f..39bb6e27f 100644 --- a/widgets/tabbar.cpp +++ b/widgets/tabbar.cpp @@ -77,7 +77,8 @@ public: tabWidgetMode(true), oldPageAnimId(-1), newPageAnimId(-1), - customFont(false) + customFont(false), + tabBarShown(true) { } @@ -109,12 +110,17 @@ public: Animation *newPageAnim; QParallelAnimationGroup *animGroup; bool customFont; + bool tabBarShown; QWeakPointer firstPositionWidget; QWeakPointer lastPositionWidget; }; void TabBarPrivate::updateTabWidgetMode() { + if (!tabBarShown) { + return; + } + bool tabWidget = false; foreach (QGraphicsWidget *page, pages) { @@ -571,6 +577,7 @@ void TabBar::setTabBarShown(bool show) if (!show && !d->tabWidgetMode) { return; } + d->tabBarShown = show; if (!show && d->tabProxy->isVisible()) { d->tabProxy->hide();