only reset the sizes when we have no tabs

BUG:205457

svn path=/trunk/KDE/kdelibs/; revision=1016724
This commit is contained in:
Aaron J. Seigo 2009-08-28 17:28:15 +00:00
parent 3c46311ccc
commit 1e8fc7272f

View File

@ -283,12 +283,11 @@ void TabBar::resizeEvent(QGraphicsSceneResizeEvent * event)
{ {
if (!d->tabWidgetMode) { if (!d->tabWidgetMode) {
d->tabProxy->setMinimumSize(event->newSize().toSize()); d->tabProxy->setMinimumSize(event->newSize().toSize());
setMinimumSize(QSize(0, 0));
setMaximumSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX);
} else { } else {
d->tabProxy->native->setMinimumSize(QSize(0,0)); d->tabProxy->native->setMinimumSize(QSize(0,0));
} }
setMaximumSize(QWIDGETSIZE_MAX,QWIDGETSIZE_MAX);
setMinimumSize(0, 0);
} }
void TabBar::setCurrentIndex(int index) void TabBar::setCurrentIndex(int index)