Commit 3f83f8b1 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Simplify creation of runner syntaxes

parent 01815792
......@@ -43,13 +43,8 @@ PlasmaRunner::PlasmaRunner(QObject *parent, const QVariantList &args)
setIgnoredTypes(Plasma::RunnerContext::NetworkLocation |
Plasma::RunnerContext::FileSystem |
Plasma::RunnerContext::Help);
QList<Plasma::RunnerSyntax> syntaxes;
syntaxes << Plasma::RunnerSyntax(QStringLiteral(":q:"),
i18n("Shows the coordinates :q: in OpenStreetMap with Marble."));
syntaxes << Plasma::RunnerSyntax(QStringLiteral(":q:"),
i18n("Shows the geo bookmark containing :q: in OpenStreetMap with Marble."));
setSyntaxes(syntaxes);
addSyntax(Plasma::RunnerSyntax(QStringLiteral(":q:"), i18n("Shows the coordinates :q: in OpenStreetMap with Marble.")));
addSyntax(Plasma::RunnerSyntax(QStringLiteral(":q:"), i18n("Shows the geo bookmark containing :q: in OpenStreetMap with Marble.")));
}
void PlasmaRunner::match(Plasma::RunnerContext &context)
......
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