Commit ba704971 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Use correct DBus signal for listening for font changes

The fonts KCM doesn't use the KGlobalSettings signal.

Instead it uses another signal, so connect to that

(cherry picked from commit 9b07e3d8)
parent adf5b6e0
Pipeline #202690 passed with stage
in 1 minute and 8 seconds
......@@ -43,13 +43,13 @@ public:
connect(qGuiApp, &QGuiApplication::paletteChanged, this, &StyleSingleton::refresh);
#ifndef Q_OS_ANDROID
// Use DBus in order to listen for kdeglobals changes directly, as the
// Use DBus in order to listen for settings changes directly, as the
// QApplication doesn't expose the font variants we're looking for,
// namely smallFont.
QDBusConnection::sessionBus().connect(QString(),
QStringLiteral("/KGlobalSettings"),
QStringLiteral("org.kde.KGlobalSettings"),
QStringLiteral("notifyChange"),
QStringLiteral("/KDEPlatformTheme"),
QStringLiteral("org.kde.KDEPlatformTheme"),
QStringLiteral("refreshFonts"),
this,
SLOT(notifyWatchersConfigurationChange()));
#endif
......
Supports Markdown
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