Changeset View
Changeset View
Standalone View
Standalone View
runners/windowedwidgets/windowedwidgetsrunner.cpp
Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Line(s) | 61 | QList<Plasma::QueryMatch> matches; | |||
---|---|---|---|---|---|
94 | } | 94 | } | ||
95 | 95 | | |||
96 | context.addMatches(matches); | 96 | context.addMatches(matches); | ||
97 | } | 97 | } | ||
98 | 98 | | |||
99 | void WindowedWidgetsRunner::run(const Plasma::RunnerContext &context, const Plasma::QueryMatch &match) | 99 | void WindowedWidgetsRunner::run(const Plasma::RunnerContext &context, const Plasma::QueryMatch &match) | ||
100 | { | 100 | { | ||
101 | Q_UNUSED(context); | 101 | Q_UNUSED(context); | ||
102 | KPluginMetaData md(match.data().toString()); | 102 | QProcess::startDetached(QStringLiteral("plasmawindowed"), {match.data().toString()}); | ||
103 | if (md.isValid()) { | | |||
104 | QProcess::startDetached(QStringLiteral("plasmawindowed"), QStringList() << md.pluginId()); | | |||
105 | } | | |||
106 | } | 103 | } | ||
107 | 104 | | |||
108 | void WindowedWidgetsRunner::setupMatch(const KPluginMetaData &md, Plasma::QueryMatch &match) | 105 | void WindowedWidgetsRunner::setupMatch(const KPluginMetaData &md, Plasma::QueryMatch &match) | ||
109 | { | 106 | { | ||
110 | match.setText(md.name()); | 107 | match.setText(md.name()); | ||
111 | match.setSubtext(md.description()); | 108 | match.setSubtext(md.description()); | ||
112 | match.setIconName(md.iconName()); | 109 | match.setIconName(md.iconName()); | ||
113 | match.setData(md.pluginId()); | 110 | match.setData(md.pluginId()); | ||
Show All 12 Lines |