Runners: Do not set deprecated ignore types

They are about to get deprecated(https://invent.kde.org/frameworks/krunner/-/merge_requests/40)
and the minLetterCount and matchRegex properties are already utilized.
wilder-5.22
Alexander Lohnau 5 years ago
parent 060dea60db
commit eea705033b
  1. 2
      runners/activities/activityrunner.cpp
  2. 3
      runners/calculator/calculatorrunner.cpp
  3. 1
      runners/locations/locationrunner.cpp
  4. 2
      runners/powerdevil/PowerDevilRunner.cpp
  5. 2
      runners/sessions/sessionrunner.cpp
  6. 2
      runners/webshortcuts/webshortcutrunner.cpp

@ -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);

Loading…
Cancel
Save