don't bork horizontal tabbar size

svn path=/trunk/KDE/kdelibs/; revision=1117183
This commit is contained in:
Marco Martin 2010-04-21 13:16:46 +00:00
parent 36e45c7929
commit 3d8425e6ef

View File

@ -345,7 +345,7 @@ void TabBar::resizeEvent(QGraphicsSceneResizeEvent * event)
{
if (!d->tabWidgetMode) {
d->tabProxy->setMinimumSize(event->newSize().toSize());
setMinimumSize(QSize(-1, -1));
setMinimumSize(QSize(0, 0));
setMinimumHeight(d->tabProxy->widget()->minimumSizeHint().height());
setMaximumSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX);
} else {