only reset the sizes when we have no tabs
BUG:205457 svn path=/trunk/KDE/kdelibs/; revision=1016724
This commit is contained in:
parent
3c46311ccc
commit
1e8fc7272f
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user