Commit e0543731 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Default to qqc2-desktop-style

parent e3da340f
......@@ -12,6 +12,7 @@
#include <QCommandLineParser>
#include <QDir>
#include <QQmlApplicationEngine>
#include <QQuickStyle>
#include <QQuickWindow>
#include <QUrl>
#include <QtQml>
......@@ -48,6 +49,11 @@ int main(int argc, char *argv[])
QCoreApplication::setOrganizationName(QStringLiteral("KDE"));
QCoreApplication::setApplicationName(QStringLiteral("Kalendar"));
// Default to org.kde.desktop style unless the user forces another style
if (qEnvironmentVariableIsEmpty("QT_QUICK_CONTROLS_STYLE")) {
QQuickStyle::setStyle(QStringLiteral("org.kde.desktop"));
}
KAboutData aboutData(
// The program name used internally.
QStringLiteral("kalendar"),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment