Commit c7cdfa25 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Port away from deprecated AbstractRunner constructor

GIT_SILENT
parent b07d76c7
......@@ -23,7 +23,6 @@
#include <kdevelopsessionswatch.h>
// KF
#include <KLocalizedString>
#include <krunner_version.h>
// Qt
#include <QDebug>
#include <QCollator>
......@@ -34,8 +33,13 @@ K_EXPORT_PLASMA_RUNNER_WITH_JSON(KDevelopSessions, "kdevelopsessions.json")
K_EXPORT_PLASMA_RUNNER(kdevelopsessions, KDevelopSessions)
#endif
#if KRUNNER_VERSION >= QT_VERSION_CHECK(5, 77, 0)
KDevelopSessions::KDevelopSessions(QObject* parent, const KPluginMetaData& metaData, const QVariantList& args)
: Plasma::AbstractRunner(parent, metaData, args)
#else
KDevelopSessions::KDevelopSessions(QObject *parent, const QVariantList& args)
: Plasma::AbstractRunner(parent, args)
#endif
{
setObjectName(QStringLiteral("KDevelop Sessions"));
setIgnoredTypes(Plasma::RunnerContext::File | Plasma::RunnerContext::Directory | Plasma::RunnerContext::NetworkLocation);
......
......@@ -24,6 +24,7 @@
#include <kdevelopsessionsobserver.h>
// KF
#include <KRunner/AbstractRunner>
#include <krunner_version.h>
class KDevelopSessions : public Plasma::AbstractRunner
......@@ -33,7 +34,11 @@ class KDevelopSessions : public Plasma::AbstractRunner
Q_INTERFACES(KDevelopSessionsObserver)
public:
#if KRUNNER_VERSION >= QT_VERSION_CHECK(5, 77, 0)
KDevelopSessions(QObject* parent, const KPluginMetaData& metaData, const QVariantList& args);
#else
KDevelopSessions(QObject *parent, const QVariantList& args);
#endif
~KDevelopSessions() override;
public:
......
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