set app style to breeze explicitly on Windows
This commit is contained in:
parent
12ad4e3eb0
commit
02ed0699ff
5 changed files with 17 additions and 0 deletions
|
@ -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;
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue