From 99ccfaf93e037fce77b9f8d86a1dda420acfd942 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 85eec5d0b..56c954f27 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -58,6 +58,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");