diff --git a/src/declarativeimports/core/units.cpp b/src/declarativeimports/core/units.cpp index 2a1a1fa8e..7df81c116 100644 --- a/src/declarativeimports/core/units.cpp +++ b/src/declarativeimports/core/units.cpp @@ -56,7 +56,7 @@ Units::Units (QObject *parent) themeChanged(); connect(&m_theme, SIGNAL(themeChanged()), this, SLOT(themeChanged())); - installEventFilter(qApp); + qApp->installEventFilter(this); const QString configFile = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + QLatin1Char('/') + plasmarc; KDirWatch::self()->addFile(configFile); diff --git a/src/plasma/private/theme_p.cpp b/src/plasma/private/theme_p.cpp index 4fc29b138..c407c8e8b 100644 --- a/src/plasma/private/theme_p.cpp +++ b/src/plasma/private/theme_p.cpp @@ -604,11 +604,11 @@ void ThemePrivate::setThemeName(const QString &tempThemeName, bool writeSettings if (colorsFile.isEmpty()) { colors = 0; if (qApp) { - installEventFilter(qApp); + qApp->installEventFilter(this); } } else { if (qApp) { - removeEventFilter(qApp); + qApp->removeEventFilter(this); } colors = KSharedConfig::openConfig(colorsFile); }