forked from qt-creator/qt-creator
Fixes: Fixed a regression in Manhattanstyle
Those properties should be recursive. We need to optimize this another way.
This commit is contained in:
@@ -83,14 +83,12 @@ bool panelWidget(const QWidget *widget)
|
|||||||
if (qobject_cast<const QDialog *>(widget->window()))
|
if (qobject_cast<const QDialog *>(widget->window()))
|
||||||
return false;
|
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;
|
const QWidget *p = widget;
|
||||||
while (p) {
|
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())
|
if (p->property("panelwidget").toBool())
|
||||||
return true;
|
return true;
|
||||||
p = p->parentWidget();
|
p = p->parentWidget();
|
||||||
|
|||||||
Reference in New Issue
Block a user