From 1e8fc7272fd084a49ed24680c87175c4ec95332f Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Fri, 28 Aug 2009 17:28:15 +0000 Subject: [PATCH] only reset the sizes when we have no tabs BUG:205457 svn path=/trunk/KDE/kdelibs/; revision=1016724 --- widgets/tabbar.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/widgets/tabbar.cpp b/widgets/tabbar.cpp index fa3bbfbd1..cf3f05ae9 100644 --- a/widgets/tabbar.cpp +++ b/widgets/tabbar.cpp @@ -283,12 +283,11 @@ void TabBar::resizeEvent(QGraphicsSceneResizeEvent * event) { if (!d->tabWidgetMode) { d->tabProxy->setMinimumSize(event->newSize().toSize()); + setMinimumSize(QSize(0, 0)); + setMaximumSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX); } else { d->tabProxy->native->setMinimumSize(QSize(0,0)); } - - setMaximumSize(QWIDGETSIZE_MAX,QWIDGETSIZE_MAX); - setMinimumSize(0, 0); } void TabBar::setCurrentIndex(int index)