fix behaviour of setTabBarShown
svn path=/trunk/KDE/kdelibs/; revision=1202099
This commit is contained in:
parent
ff8aea50c6
commit
1d9da0068e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user