while still adjusting hard size hints, keep the tabbar centered

svn path=/trunk/KDE/kdelibs/; revision=1115434
This commit is contained in:
Marco Martin 2010-04-16 12:57:59 +00:00
parent 6ff8621d3a
commit ee661f4347

View File

@ -205,6 +205,7 @@ void TabBarPrivate::shapeChanged(const QTabBar::Shape shape)
}
tabProxy->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
}
tabProxy->setPreferredSize(tabProxy->native->sizeHint());
}
void TabBarPrivate::setPalette()
@ -345,7 +346,6 @@ void TabBar::resizeEvent(QGraphicsSceneResizeEvent * event)
setMaximumSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX);
} else {
d->tabProxy->native->setMinimumSize(QSize(0,0));
d->tabProxy->setMinimumSize(QSize(0,0));
}
}