Commit 56c526e9 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau Committed by Alexander Lohnau

Runners: port to KPluginMetaData argument using AbstractRunner constructor

parent ee9033b6
......@@ -6,7 +6,7 @@ set(PROJECT_VERSION "5.20.80")
set(PROJECT_VERSION_MAJOR 5)
set(QT_MIN_VERSION "5.15.0")
set(KF5_MIN_VERSION "5.74")
set(KF5_MIN_VERSION "5.77")
set(ACCOUNTSQT_DEP_VERSION "1.13")
set(CMAKE_CXX_STANDARD 17)
......
......@@ -30,8 +30,8 @@ K_EXPORT_PLASMA_RUNNER_WITH_JSON(KWinRunner, "plasma-runner-kwin.json")
static const QString s_kwinService = QStringLiteral("org.kde.KWin");
static const QString s_keyword = QStringLiteral("KWin");
KWinRunner::KWinRunner(QObject *parent, const QVariantList &args)
: Plasma::AbstractRunner(parent, args),
KWinRunner::KWinRunner(QObject *parent, const KPluginMetaData &metaData, const QVariantList &args)
: Plasma::AbstractRunner(parent, metaData, args),
m_enabled(false)
{
setObjectName(s_keyword);
......
......@@ -27,7 +27,7 @@ class KWinRunner : public Plasma::AbstractRunner
Q_OBJECT
public:
explicit KWinRunner(QObject *parent, const QVariantList &args);
explicit KWinRunner(QObject *parent, const KPluginMetaData &metaData, const QVariantList &args);
~KWinRunner() override;
void match(Plasma::RunnerContext &context) override;
......
......@@ -30,8 +30,8 @@ K_EXPORT_PLASMA_RUNNER_WITH_JSON(PlasmaDesktopRunner, "plasma-runner-plasma-desk
static const QString s_plasmaService = QLatin1String("org.kde.plasmashell");
PlasmaDesktopRunner::PlasmaDesktopRunner(QObject *parent, const QVariantList &args)
: Plasma::AbstractRunner(parent, args),
PlasmaDesktopRunner::PlasmaDesktopRunner(QObject *parent, const KPluginMetaData &metaData, const QVariantList &args)
: Plasma::AbstractRunner(parent, metaData, args),
m_desktopConsoleKeyword(i18nc("Note this is a KRunner keyword", "desktop console")),
m_kwinConsoleKeyword(i18nc("Note this is a KRunner keyword", "wm console")),
m_enabled(false)
......
......@@ -30,7 +30,7 @@ class PlasmaDesktopRunner : public Plasma::AbstractRunner
Q_OBJECT
public:
PlasmaDesktopRunner(QObject *parent, const QVariantList &args);
PlasmaDesktopRunner(QObject *parent, const KPluginMetaData &metaData, const QVariantList &args);
~PlasmaDesktopRunner() override;
void match(Plasma::RunnerContext &context) override;
......
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