Commit 13ee08c5 authored by Alexander Lohnau's avatar Alexander Lohnau 💬

Port deprecated KRunner methods

parent 40e20eb5
......@@ -28,10 +28,8 @@ KateSessions::KateSessions(QObject *parent, const QVariantList &args)
setIgnoredTypes(Plasma::RunnerContext::File | Plasma::RunnerContext::Directory
| Plasma::RunnerContext::NetworkLocation);
Plasma::RunnerSyntax s(QStringLiteral("kate :q:"), i18n("Finds Kate sessions matching :q:."));
addSyntax(s);
setDefaultSyntax(Plasma::RunnerSyntax(QStringLiteral("kate"),
i18n("Lists all the Kate editor sessions in your account.")));
addSyntax(Plasma::RunnerSyntax(QStringLiteral("kate :q:"), i18n("Finds Kate sessions matching :q:.")));
addSyntax(Plasma::RunnerSyntax(QStringLiteral("kate"), i18n("Lists all the Kate editor sessions in your account.")));
m_sessionsFolderPath = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation)
+ QStringLiteral("/kate/sessions");
......
......@@ -32,8 +32,8 @@ KonsoleProfiles::KonsoleProfiles(QObject *parent, const QVariantList &args)
Plasma::RunnerSyntax s(QStringLiteral(":q:"), i18n("Finds Konsole profiles matching :q:."));
s.addExampleQuery(QStringLiteral("konsole :q:"));
addSyntax(s);
setDefaultSyntax(Plasma::RunnerSyntax(QStringLiteral("konsole"),
i18n("Lists all the Konsole profiles in your account.")));
addSyntax(Plasma::RunnerSyntax(QStringLiteral("konsole"),
i18n("Lists all the Konsole profiles in your account.")));
}
KonsoleProfiles::~KonsoleProfiles() = default;
......
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