Commit b757b346 authored by Jens Bache-Wiig's avatar Jens Bache-Wiig
Browse files

Fixes: Fixed a regression in Manhattanstyle

Those properties should be recursive. We need to optimize this
another way.
parent 1982ab61
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment