workaround on a qt bug: if i call setVisible(true) on a child of an

hidden item it gets shown anyways (will get around doing a test case)

svn path=/trunk/KDE/kdelibs/; revision=946139
This commit is contained in:
Marco Martin 2009-03-28 19:11:43 +00:00
parent 113d703984
commit 2ebcc9f481

View File

@ -126,7 +126,9 @@ void TabBarPrivate::updateTabWidgetMode()
}
//always show the tabbar
if (!tabWidget) {
//FIXME: Qt BUG: calling show on a child of an hidden item it shows it anyways
//so we avoid to call it if the parent is hidden
if (!tabWidget && q->isVisible()) {
q->setTabBarShown(true);
}