Commit 44c803b4 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 c05360f8
......@@ -20,9 +20,6 @@ CharacterRunner::CharacterRunner(QObject *parent, const QVariantList &args)
{
Q_UNUSED(args)
setObjectName(QStringLiteral("CharacterRunner"));
setIgnoredTypes(Plasma::RunnerContext::Directory | Plasma::RunnerContext::File |
Plasma::RunnerContext::NetworkLocation | Plasma::RunnerContext::Executable |
Plasma::RunnerContext::ShellCommand);
}
CharacterRunner::~CharacterRunner()
......@@ -31,7 +28,6 @@ CharacterRunner::~CharacterRunner()
void CharacterRunner::reloadConfiguration()
{
const KConfigGroup grp = config();
m_triggerWord = grp.readEntry(CONFIG_TRIGGERWORD, DEFAULT_TRIGGERWORD.toString());
m_aliases = grp.readEntry(CONFIG_ALIASES, QStringList());
......
......@@ -19,9 +19,6 @@ ConverterRunner::ConverterRunner(QObject *parent, const QVariantList &args)
: Plasma::AbstractRunner(parent, args)
{
setObjectName(QStringLiteral("Converter"));
//can not ignore commands: we have things like m4
setIgnoredTypes(Plasma::RunnerContext::Directory | Plasma::RunnerContext::File |
Plasma::RunnerContext::NetworkLocation);
const QString description = i18n("Converts the value of :q: when :q: is made up of "
"\"value unit [>, to, as, in] unit\". You can use the "
......
......@@ -18,9 +18,6 @@ DictionaryRunner::DictionaryRunner(QObject *parent, const QVariantList &args)
setSpeed(SlowSpeed);
setPriority(LowPriority);
setObjectName(QLatin1String("Dictionary"));
setIgnoredTypes(Plasma::RunnerContext::Directory | Plasma::RunnerContext::File |
Plasma::RunnerContext::NetworkLocation | Plasma::RunnerContext::Executable |
Plasma::RunnerContext::ShellCommand);
}
void DictionaryRunner::init()
......
......@@ -25,8 +25,6 @@ KateSessions::KateSessions(QObject *parent, const QVariantList &args)
: Plasma::AbstractRunner(parent, args)
{
setObjectName(QStringLiteral("Kate Sessions"));
setIgnoredTypes(Plasma::RunnerContext::File | Plasma::RunnerContext::Directory
| Plasma::RunnerContext::NetworkLocation);
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.")));
......
......@@ -25,10 +25,6 @@ KonsoleProfiles::KonsoleProfiles(QObject *parent, const QVariantList &args)
{
setObjectName(QStringLiteral("Konsole Profiles"));
setIgnoredTypes(Plasma::RunnerContext::File
| Plasma::RunnerContext::Directory
| Plasma::RunnerContext::NetworkLocation);
Plasma::RunnerSyntax s(QStringLiteral(":q:"), i18n("Finds Konsole profiles matching :q:."));
s.addExampleQuery(QStringLiteral("konsole :q:"));
addSyntax(s);
......
......@@ -21,7 +21,6 @@ SpellCheckRunner::SpellCheckRunner(QObject* parent, const QVariantList &args)
{
Q_UNUSED(args)
setObjectName(QStringLiteral("Spell Checker"));
setIgnoredTypes(Plasma::RunnerContext::FileSystem | Plasma::RunnerContext::NetworkLocation);
setSpeed(AbstractRunner::SlowSpeed);
}
......
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