set app style to breeze explicitly on Windows

This commit is contained in:
Piyush Aggarwal 2021-06-03 03:15:21 +05:30
parent 12ad4e3eb0
commit 02ed0699ff
5 changed files with 17 additions and 0 deletions

View file

@ -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"));

View file

@ -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;

View file

@ -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);

View file

@ -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"));

View file

@ -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;
{ {