Commit 02ed0699 authored by Piyush Aggarwal's avatar Piyush Aggarwal 🎮
Browse files

set app style to breeze explicitly on Windows

parent 12ad4e3e
Pipeline #63936 passed with stage
in 3 minutes and 53 seconds
......@@ -24,6 +24,10 @@ int main(int argc, char* argv[])
aboutData.addAuthor(i18n("Aleix Pol Gonzalez"), i18n("Maintainer"), QStringLiteral("aleixpol@kde.org"));
KAboutData::setApplicationData(aboutData);
#ifdef Q_OS_WIN
QApplication::setStyle(QStringLiteral("breeze"));
#endif
// Default to org.kde.desktop style unless the user forces another style
if (qEnvironmentVariableIsEmpty("QT_QUICK_CONTROLS_STYLE")) {
QQuickStyle::setStyle(QStringLiteral("org.kde.desktop"));
......
......@@ -42,6 +42,7 @@ int main(int argc, char** argv)
KAboutData::setApplicationData(about);
#ifdef Q_OS_WIN
QApplication::setStyle(QStringLiteral("breeze"));
IndicatorHelper helper(QUrl::fromLocalFile(qApp->applicationDirPath()));
#else
IndicatorHelper helper;
......
......@@ -41,6 +41,10 @@ KdeConnectKcm::KdeConnectKcm(QWidget* parent, const QVariantList& args)
about->addAuthor(i18n("Albert Vaca Cintora"));
setAboutData(about);
#ifdef Q_OS_WIN
QApplication::setStyle(QStringLiteral("breeze"));
#endif
kcmUi->setupUi(this);
sortProxyModel = new DevicesSortProxyModel(devicesModel);
......
......@@ -39,6 +39,10 @@ int main(int argc, char *argv[])
aboutData.addAuthor(i18n("Nicolas Fella"), {}, QStringLiteral("nicolas.fella@gmx.de"));
KAboutData::setApplicationData(aboutData);
#ifdef Q_OS_WIN
QApplication::setStyle(QStringLiteral("breeze"));
#endif
// Default to org.kde.desktop style unless the user forces another style
if (qEnvironmentVariableIsEmpty("QT_QUICK_CONTROLS_STYLE")) {
QQuickStyle::setStyle(QStringLiteral("org.kde.desktop"));
......
......@@ -46,6 +46,10 @@ int main(int argc, char** argv)
about.addAuthor( QStringLiteral("Aleix Pol Gonzalez"), QString(), QStringLiteral("aleixpol@kde.org") );
KAboutData::setApplicationData(about);
#ifdef Q_OS_WIN
QApplication::setStyle(QStringLiteral("breeze"));
#endif
QUrl urlToShare;
bool open;
{
......
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