Skip to content
Snippets Groups Projects
Commit 18d4d20a authored by Daniel Teske's avatar Daniel Teske
Browse files

Fix detection of Oxygen style


Change-Id: I2a28335285869ce477d2c71532ccb44046a0cfa7
Reviewed-by: default avatarDaniel Teske <daniel.teske@nokia.com>
parent 7bde24aa
No related branches found
No related tags found
No related merge requests found
......@@ -271,7 +271,7 @@ void ManhattanStyle::polish(QWidget *widget)
QProxyStyle::polish(widget);
// OxygenStyle forces a rounded widget mask on toolbars and dock widgets
if (baseStyle()->inherits("OxygenStyle")) {
if (baseStyle()->inherits("OxygenStyle") || baseStyle()->inherits("Oxygen::Style")) {
if (qobject_cast<QToolBar*>(widget) || qobject_cast<QDockWidget*>(widget)) {
widget->removeEventFilter(baseStyle());
widget->setContentsMargins(0, 0, 0, 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment