invalidate the main layout when te new page is inserted, only way to get

the preferred size right, apparently

svn path=/trunk/KDE/kdelibs/; revision=1042410
This commit is contained in:
Marco Martin 2009-10-29 19:05:04 +00:00
parent b03243d7ae
commit 5bd2af94f8

View File

@ -145,6 +145,7 @@ void TabBarPrivate::slidingCompleted(QGraphicsItem *item)
if (item == newPage) {
tabWidgetLayout->addItem(newPage);
newPageAnimId = -1;
mainLayout->invalidate();
emit q->currentChanged(currentIndex);
} else {
oldPageAnimId = -1;