From 57e05e2114c70a59b2a2249b8c57ff3d47fd3c17 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Wed, 23 Dec 2020 17:28:42 +0100 Subject: [PATCH] Default to org.kde.desktop QQC2 style plasma-integration does that for us, but that obviously doesn't work for non-Plasma desktops. --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 1633d8375..2c329f544 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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");