Commit f6a6c836 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Remove deprecated KRunner method calls

They are about to deprecated, see
frameworks/krunner!40.
parent 8d33d2d7
...@@ -35,9 +35,6 @@ KWinRunner::KWinRunner(QObject *parent, const QVariantList &args) ...@@ -35,9 +35,6 @@ KWinRunner::KWinRunner(QObject *parent, const QVariantList &args)
m_enabled(false) m_enabled(false)
{ {
setObjectName(s_keyword); setObjectName(s_keyword);
setIgnoredTypes(Plasma::RunnerContext::FileSystem |
Plasma::RunnerContext::NetworkLocation |
Plasma::RunnerContext::Help);
QDBusServiceWatcher *watcher = new QDBusServiceWatcher(s_kwinService, QDBusConnection::sessionBus(), QDBusServiceWatcher *watcher = new QDBusServiceWatcher(s_kwinService, QDBusConnection::sessionBus(),
QDBusServiceWatcher::WatchForOwnerChange, this); QDBusServiceWatcher::WatchForOwnerChange, this);
connect(watcher, &QDBusServiceWatcher::serviceOwnerChanged, this, &KWinRunner::checkAvailability); connect(watcher, &QDBusServiceWatcher::serviceOwnerChanged, this, &KWinRunner::checkAvailability);
......
...@@ -37,9 +37,6 @@ PlasmaDesktopRunner::PlasmaDesktopRunner(QObject *parent, const QVariantList &ar ...@@ -37,9 +37,6 @@ PlasmaDesktopRunner::PlasmaDesktopRunner(QObject *parent, const QVariantList &ar
m_enabled(false) m_enabled(false)
{ {
setObjectName( QLatin1String("Plasma-Desktop" )); setObjectName( QLatin1String("Plasma-Desktop" ));
setIgnoredTypes(Plasma::RunnerContext::FileSystem |
Plasma::RunnerContext::NetworkLocation |
Plasma::RunnerContext::Help);
QDBusServiceWatcher *watcher = new QDBusServiceWatcher(s_plasmaService, QDBusConnection::sessionBus(), QDBusServiceWatcher *watcher = new QDBusServiceWatcher(s_plasmaService, QDBusConnection::sessionBus(),
QDBusServiceWatcher::WatchForOwnerChange, this); QDBusServiceWatcher::WatchForOwnerChange, this);
connect(watcher, &QDBusServiceWatcher::serviceOwnerChanged, connect(watcher, &QDBusServiceWatcher::serviceOwnerChanged,
......
Markdown is supported
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