Commit 0c4fd8a5 authored by David Edmundson's avatar David Edmundson
Browse files

Remove one more kdelibs4support

Summary:
Using the DBus API directly is done in both powerdevil and kscreen ATM.
Leaving the time dataengine the odd one out. It's also not used on Linux
where we use the more appropriate kernel signal, so linking a dead library is
extra pointless

Test Plan: Tested compile by altering some #ifdefs

Reviewers: #plasma

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D11966
parent b1ec23bc
......@@ -14,7 +14,6 @@ target_link_libraries(plasma_engine_time
KF5::Plasma
KF5::I18n
KF5::Service
KF5::KDELibs4Support
)
kcoreaddons_desktop_to_json(plasma_engine_time plasma-dataengine-time.desktop)
......
......@@ -25,9 +25,6 @@
#include <QStringList>
#include <QTime>
#include <QSocketNotifier>
#include <QTimeZone>
#include <Solid/PowerManagement>
#ifdef Q_OS_LINUX
#include <sys/timerfd.h>
......@@ -88,7 +85,12 @@ void TimeEngine::init()
});
#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
}
......
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