Changeset View
Changeset View
Standalone View
Standalone View
runners/shell/shellrunner.cpp
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Line(s) | 58 | { | |||
---|---|---|---|---|---|
62 | 62 | | |||
63 | if (context.type() == Plasma::RunnerContext::Executable || | 63 | if (context.type() == Plasma::RunnerContext::Executable || | ||
64 | context.type() == Plasma::RunnerContext::ShellCommand) { | 64 | context.type() == Plasma::RunnerContext::ShellCommand) { | ||
65 | const QString term = context.query(); | 65 | const QString term = context.query(); | ||
66 | Plasma::QueryMatch match(this); | 66 | Plasma::QueryMatch match(this); | ||
67 | match.setId(term); | 67 | match.setId(term); | ||
68 | match.setType(Plasma::QueryMatch::ExactMatch); | 68 | match.setType(Plasma::QueryMatch::ExactMatch); | ||
69 | match.setIconName(QStringLiteral("system-run")); | 69 | match.setIconName(QStringLiteral("system-run")); | ||
70 | match.setText(i18n("Run %1", term)); | 70 | match.setText(i18n("Run shell command '%1'", term)); | ||
71 | match.setRelevance(0.7); | 71 | match.setRelevance(0.7); | ||
72 | context.addMatch(match); | 72 | context.addMatch(match); | ||
73 | } | 73 | } | ||
74 | } | 74 | } | ||
75 | 75 | | |||
76 | void ShellRunner::run(const Plasma::RunnerContext &context, const Plasma::QueryMatch &match) | 76 | void ShellRunner::run(const Plasma::RunnerContext &context, const Plasma::QueryMatch &match) | ||
77 | { | 77 | { | ||
78 | Q_UNUSED(match); | 78 | Q_UNUSED(match); | ||
Show All 18 Lines |