diff --git a/styleplugins/chameleon/chameleonstyle.cpp b/styleplugins/chameleon/chameleonstyle.cpp index 63b70621..1b0814bf 100644 --- a/styleplugins/chameleon/chameleonstyle.cpp +++ b/styleplugins/chameleon/chameleonstyle.cpp @@ -18,7 +18,7 @@ #include #include #include -#include +#include #include #include @@ -4755,7 +4755,7 @@ void ChameleonStyle::polish(QWidget *w) view->setItemDelegate(new QStyledItemDelegate); } - if (DApplication::isDXcbPlatform() || (qApp->platformName() == "dwayland" || qApp->property("_d_isDwayland").toBool())) { + if (DApplication::isDXcbPlatform() || DGuiApplicationHelper::testAttribute(DGuiApplicationHelper::IsWaylandPlatform)) { bool is_menu = qobject_cast(w); bool is_tip = w->inherits("QTipLabel");