diff --git a/dataengines/time/CMakeLists.txt b/dataengines/time/CMakeLists.txt --- a/dataengines/time/CMakeLists.txt +++ b/dataengines/time/CMakeLists.txt @@ -14,7 +14,6 @@ KF5::Plasma KF5::I18n KF5::Service - KF5::KDELibs4Support ) kcoreaddons_desktop_to_json(plasma_engine_time plasma-dataengine-time.desktop) diff --git a/dataengines/time/timeengine.cpp b/dataengines/time/timeengine.cpp --- a/dataengines/time/timeengine.cpp +++ b/dataengines/time/timeengine.cpp @@ -25,9 +25,6 @@ #include #include #include -#include - -#include #ifdef Q_OS_LINUX #include @@ -88,7 +85,12 @@ }); #else dbus.connect(QString(), "/org/kde/kcmshell_clock", "org.kde.kcmshell_clock", "clockUpdated", this, SLOT(clockSkewed())); - connect( Solid::PowerManagement::notifier(), SIGNAL(resumingFromSuspend()), this , SLOT(clockSkewed()) ); + dbus.connect(QStringLiteral("org.kde.Solid.PowerManagement"), + QStringLiteral("/org/kde/Solid/PowerManagement/Actions/SuspendSession"), + QStringLiteral("org.kde.Solid.PowerManagement.Actions.SuspendSession"), + QStringLiteral("resumingFromSuspend"), + this, + SLOT(clockSkewed())); #endif }