Commit eea70503 authored by Alexander Lohnau's avatar Alexander Lohnau 💬

Runners: Do not set deprecated ignore types

They are about to get deprecated(frameworks/krunner!40)
and the minLetterCount and matchRegex properties are already utilized.
parent 060dea60
......@@ -32,8 +32,6 @@ ActivityRunner::ActivityRunner(QObject *parent, const QVariantList &args)
m_keyword(QStringLiteral("activity"))
{
setObjectName(QStringLiteral("Activities"));
setIgnoredTypes(Plasma::RunnerContext::Directory | Plasma::RunnerContext::File |
Plasma::RunnerContext::NetworkLocation | Plasma::RunnerContext::Help);
addSyntax(Plasma::RunnerSyntax(m_keywordi18n, i18n("Lists all activities currently available to be run.")));
addSyntax(Plasma::RunnerSyntax(i18nc("KRunner keyword", "activity :q:"), i18n("Switches to activity :q:.")));
......
......@@ -47,9 +47,6 @@ CalculatorRunner::CalculatorRunner(QObject *parent, const QVariantList &args)
#endif
setObjectName(QStringLiteral("Calculator"));
setIgnoredTypes(Plasma::RunnerContext::Directory | Plasma::RunnerContext::File |
Plasma::RunnerContext::NetworkLocation | Plasma::RunnerContext::Executable |
Plasma::RunnerContext::ShellCommand);
QString description = i18n("Calculates the value of :q: when :q: is made up of numbers and "
"mathematical symbols such as +, -, /, * and ^.");
......
......@@ -41,7 +41,6 @@ LocationsRunner::LocationsRunner(QObject *parent, const QVariantList& args)
{
// set the name shown after the result in krunner window
setObjectName(QStringLiteral("Locations"));
setIgnoredTypes(Plasma::RunnerContext::Executable | Plasma::RunnerContext::ShellCommand);
addSyntax(Plasma::RunnerSyntax(QStringLiteral(":q:"),
i18n("Finds local directories and files, network locations and Internet sites with paths matching :q:.")));
}
......
......@@ -40,8 +40,6 @@ PowerDevilRunner::PowerDevilRunner(QObject *parent, const QVariantList &args)
qDBusRegisterMetaType< StringStringMap >();
setObjectName(QStringLiteral("PowerDevil"));
setIgnoredTypes(Plasma::RunnerContext::Directory | Plasma::RunnerContext::File |
Plasma::RunnerContext::NetworkLocation | Plasma::RunnerContext::Help);
updateStatus();
initUpdateTriggers();
......
......@@ -34,8 +34,6 @@ SessionRunner::SessionRunner(QObject *parent, const QVariantList &args)
{
setObjectName(QStringLiteral("Sessions"));
setPriority(LowPriority);
setIgnoredTypes(Plasma::RunnerContext::Directory | Plasma::RunnerContext::File |
Plasma::RunnerContext::NetworkLocation);
m_canLogout = KAuthorized::authorizeAction(QStringLiteral("logout")) && KAuthorized::authorize(QStringLiteral("logout"));
if (m_canLogout) {
......
......@@ -33,8 +33,6 @@ WebshortcutRunner::WebshortcutRunner(QObject *parent, const QVariantList& args)
m_match(this), m_filterBeforeRun(false)
{
setObjectName(QStringLiteral("Web Shortcut"));
setIgnoredTypes(Plasma::RunnerContext::Directory | Plasma::RunnerContext::File | Plasma::RunnerContext::Executable);
m_match.setType(Plasma::QueryMatch::ExactMatch);
m_match.setRelevance(0.9);
......
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