From 83536d168441a4b4e1cfa3c8adf2d771088edfef Mon Sep 17 00:00:00 2001 From: Rob Emery Date: Wed, 9 Oct 2024 22:37:29 +0100 Subject: [PATCH] Using KColorSchemeManager::KColorSchemeManager is deprecated --- indicator/main.cpp | 2 +- kcm/kcm.cpp | 2 +- smsapp/main.cpp | 2 +- urlhandler/kdeconnect-handler.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/indicator/main.cpp b/indicator/main.cpp index 619dd1bda..d08d23300 100644 --- a/indicator/main.cpp +++ b/indicator/main.cpp @@ -64,7 +64,7 @@ int main(int argc, char **argv) KCrash::initialize(); #ifdef Q_OS_WIN - KColorSchemeManager manager; + KColorSchemeManager::instance(); QApplication::setStyle(QStringLiteral("breeze")); #endif diff --git a/kcm/kcm.cpp b/kcm/kcm.cpp index 6bc6feb62..05d9297b9 100644 --- a/kcm/kcm.cpp +++ b/kcm/kcm.cpp @@ -47,7 +47,7 @@ KdeConnectKcm::KdeConnectKcm(QObject *parent, const KPluginMetaData &md, const Q , currentDevice(nullptr) { #ifdef Q_OS_WIN - KColorSchemeManager manager; + KColorSchemeManager::instance(); QApplication::setStyle(QStringLiteral("breeze")); #endif diff --git a/smsapp/main.cpp b/smsapp/main.cpp index 94d8b9071..181a48d16 100644 --- a/smsapp/main.cpp +++ b/smsapp/main.cpp @@ -61,7 +61,7 @@ int main(int argc, char *argv[]) KCrash::initialize(); #ifdef Q_OS_WIN - KColorSchemeManager manager; + KColorSchemeManager::instance(); QApplication::setStyle(QStringLiteral("breeze")); #endif diff --git a/urlhandler/kdeconnect-handler.cpp b/urlhandler/kdeconnect-handler.cpp index 5270a696a..175828c9d 100644 --- a/urlhandler/kdeconnect-handler.cpp +++ b/urlhandler/kdeconnect-handler.cpp @@ -55,7 +55,7 @@ int main(int argc, char **argv) KDBusService dbusService(KDBusService::Unique); #ifdef Q_OS_WIN - KColorSchemeManager manager; + KColorSchemeManager::instance(); QApplication::setStyle(QStringLiteral("breeze")); #endif