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