fix behaviour of setTabBarShown

svn path=/trunk/KDE/kdelibs/; revision=1202099
This commit is contained in:
Marco Martin 2010-11-29 17:00:26 +00:00
parent ff8aea50c6
commit 1d9da0068e

View File

@ -564,7 +564,7 @@ void TabBar::setTabBarShown(bool show)
}
d->tabBarShown = show;
if (!show && d->tabProxy->isVisible()) {
if (!show) {
d->tabProxy->hide();
d->tabWidgetLayout->removeItem(d->tabBarLayout);
} else if (show && !d->tabProxy->isVisible()) {
@ -575,7 +575,7 @@ void TabBar::setTabBarShown(bool show)
bool TabBar::isTabBarShown() const
{
return d->tabProxy->isVisible();
return d->tabBarShown;
}
void TabBar::setStyleSheet(const QString &stylesheet)