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
wilder-5.14
David Edmundson 8 years ago
parent b1ec23bc61
commit 0c4fd8a5e6
  1. 1
      dataengines/time/CMakeLists.txt
  2. 10
      dataengines/time/timeengine.cpp

@ -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
}

Loading…
Cancel
Save