Fixes: Fixed a regression in Manhattanstyle

Those properties should be recursive. We need to optimize this
another way.
This commit is contained in:
Jens Bache-Wiig
2009-12-11 17:16:17 +01:00
parent 1982ab61a5
commit b757b34640

View File

@@ -83,14 +83,12 @@ bool panelWidget(const QWidget *widget)
if (qobject_cast<const QDialog *>(widget->window()))
return false;
// Style toolbars, statusbar and menubar
if (qobject_cast<const QToolBar *>(widget) ||
qobject_cast<const QStatusBar *>(widget) ||
qobject_cast<const QMenuBar *>(widget))
return styleEnabled(widget);
const QWidget *p = widget;
while (p) {
if (qobject_cast<const QToolBar *>(p) ||
qobject_cast<const QStatusBar *>(p) ||
qobject_cast<const QMenuBar *>(p))
return styleEnabled(widget);
if (p->property("panelwidget").toBool())
return true;
p = p->parentWidget();