diff --git a/src/plugins/coreplugin/manhattanstyle.cpp b/src/plugins/coreplugin/manhattanstyle.cpp index f834cd2765b..9a8934b989f 100644 --- a/src/plugins/coreplugin/manhattanstyle.cpp +++ b/src/plugins/coreplugin/manhattanstyle.cpp @@ -37,6 +37,7 @@ #include #include +#include #include #include #include @@ -288,7 +289,8 @@ void ManhattanStyle::polish(QWidget *widget) if (qobject_cast(widget) || qobject_cast(widget)) { widget->setAttribute(Qt::WA_Hover); widget->setMaximumHeight(height - 2); - } else if (qobject_cast(widget)) { + } else if (qobject_cast(widget) || qobject_cast(widget) + || qobject_cast(widget)) { widget->setPalette(panelPalette(widget->palette(), lightColored(widget))); } else if (widget->property("panelwidget_singlerow").toBool()) { widget->setFixedHeight(height); @@ -303,10 +305,6 @@ void ManhattanStyle::polish(QWidget *widget) widget->setPalette(palette); widget->setMaximumHeight(height - 2); widget->setAttribute(Qt::WA_Hover); - } else if (qobject_cast(widget)) { - const bool isLightColored = lightColored(widget); - QPalette palette = panelPalette(widget->palette(), isLightColored); - widget->setPalette(palette); } } }