Default to org.kde.desktop QQC2 style

plasma-integration does that for us, but that obviously doesn't work for non-Plasma desktops.
This commit is contained in:
Nicolas Fella
2020-12-23 17:28:42 +01:00
parent b4e528b047
commit 57e05e2114

View File

@@ -59,6 +59,10 @@ int main(int argc, char *argv[])
QQuickStyle::setStyle(QStringLiteral("Material"));
#else
QApplication app(argc, argv);
// Default to org.kde.desktop style unless the user forces another style
if (qEnvironmentVariableIsEmpty("QT_QUICK_CONTROLS_STYLE")) {
QQuickStyle::setStyle(QStringLiteral("org.kde.desktop"));
}
#endif
QApplication::setOrganizationName("KDE");