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:
@@ -59,6 +59,10 @@ int main(int argc, char *argv[])
|
|||||||
QQuickStyle::setStyle(QStringLiteral("Material"));
|
QQuickStyle::setStyle(QStringLiteral("Material"));
|
||||||
#else
|
#else
|
||||||
QApplication app(argc, argv);
|
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
|
#endif
|
||||||
|
|
||||||
QApplication::setOrganizationName("KDE");
|
QApplication::setOrganizationName("KDE");
|
||||||
|
|||||||
Reference in New Issue
Block a user