mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
plasma: adjust to runners changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
46fa70560c
commit
ae5bccc644
17 changed files with 10 additions and 25 deletions
|
@ -41,11 +41,11 @@ BookmarksRunner::BookmarksRunner( QObject* parent, const QVariantList &args )
|
|||
Q_UNUSED(args)
|
||||
kDebug(kdbg_code) << "Creating BookmarksRunner";
|
||||
setObjectName( QLatin1String("Bookmarks" ));
|
||||
addSyntax(Plasma::RunnerSyntax(":q:", i18n("Finds web browser bookmarks matching :q:.")));
|
||||
setDefaultSyntax(
|
||||
addSyntax(
|
||||
Plasma::RunnerSyntax(i18nc("list of all web browser bookmarks", "bookmarks"),
|
||||
i18n("List all web browser bookmarks"))
|
||||
);
|
||||
addSyntax(Plasma::RunnerSyntax(":q:", i18n("Finds web browser bookmarks matching :q:.")));
|
||||
|
||||
connect(this, SIGNAL(prepare()), this, SLOT(prep()));
|
||||
}
|
||||
|
@ -68,7 +68,7 @@ void BookmarksRunner::match(Plasma::RunnerContext &context)
|
|||
{
|
||||
if(! m_browser) return;
|
||||
const QString term = context.query();
|
||||
if ((term.length() < 3) && (!context.singleRunnerQueryMode())) {
|
||||
if (term.length() < 3) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -157,4 +157,3 @@ X-KDE-PluginInfo-Name=bookmarks
|
|||
X-KDE-PluginInfo-Version=1.1
|
||||
X-KDE-PluginInfo-License=LGPL
|
||||
X-KDE-PluginInfo-EnabledByDefault=true
|
||||
X-Plasma-AdvertiseSingleRunnerQueryMode=true
|
||||
|
|
|
@ -161,5 +161,4 @@ X-KDE-PluginInfo-Email=plasma-devel@kde.org
|
|||
X-KDE-PluginInfo-Name=locations
|
||||
X-KDE-PluginInfo-Version=1.0
|
||||
X-KDE-PluginInfo-License=LGPL
|
||||
X-Plasma-AdvertiseSingleRunnerQueryMode=true
|
||||
X-KDE-PluginInfo-EnabledByDefault=true
|
||||
|
|
|
@ -35,9 +35,7 @@ PlacesRunner::PlacesRunner(QObject* parent, const QVariantList &args)
|
|||
// qRegisterMetaType
|
||||
Q_UNUSED(args)
|
||||
setObjectName( QLatin1String("Places" ));
|
||||
Plasma::RunnerSyntax defaultSyntax(i18n("places"), i18n("Lists all file manager locations"));
|
||||
setDefaultSyntax(defaultSyntax);
|
||||
addSyntax(defaultSyntax);
|
||||
addSyntax(Plasma::RunnerSyntax(i18n("places"), i18n("Lists all file manager locations")));
|
||||
addSyntax(Plasma::RunnerSyntax(":q:", i18n("Finds file manager locations that match :q:")));
|
||||
|
||||
// ensure the bookmarkmanager, etc. in the places model gets creates created in the main thread
|
||||
|
|
|
@ -155,5 +155,4 @@ X-KDE-PluginInfo-EnabledByDefault=true
|
|||
X-KDE-PluginInfo-License=GPL
|
||||
X-KDE-PluginInfo-Name=PowerDevil
|
||||
X-KDE-PluginInfo-Version=1.0
|
||||
X-Plasma-AdvertiseSingleRunnerQueryMode=true
|
||||
X-KDE-ServiceTypes=Plasma/Runner
|
||||
|
|
|
@ -93,5 +93,4 @@ X-KDE-PluginInfo-Email=sebas@kde.org
|
|||
X-KDE-PluginInfo-Name=recentdocuments
|
||||
X-KDE-PluginInfo-Version=1.0
|
||||
X-KDE-PluginInfo-License=LGPL
|
||||
X-Plasma-AdvertiseSingleRunnerQueryMode=true
|
||||
X-KDE-PluginInfo-EnabledByDefault=true
|
||||
|
|
|
@ -175,4 +175,3 @@ X-KDE-PluginInfo-Name=services
|
|||
X-KDE-PluginInfo-Version=1.0
|
||||
X-KDE-PluginInfo-License=LGPL
|
||||
X-KDE-PluginInfo-EnabledByDefault=true
|
||||
X-Plasma-AdvertiseSingleRunnerQueryMode=true
|
||||
|
|
|
@ -160,5 +160,4 @@ X-KDE-PluginInfo-Name=desktopsessions
|
|||
X-KDE-PluginInfo-Version=1.0
|
||||
X-KDE-PluginInfo-License=LGPL
|
||||
X-KDE-PluginInfo-EnabledByDefault=true
|
||||
X-Plasma-AdvertiseSingleRunnerQueryMode=true
|
||||
|
||||
|
|
|
@ -58,8 +58,7 @@ SessionRunner::SessionRunner(QObject *parent, const QVariantList &args)
|
|||
fastUserSwitchSyntax.addExampleQuery(i18n("new session"));
|
||||
addSyntax(fastUserSwitchSyntax);
|
||||
|
||||
setDefaultSyntax(Plasma::RunnerSyntax("SESSIONS", i18n("Lists all sessions")));
|
||||
|
||||
addSyntax(Plasma::RunnerSyntax("SESSIONS", i18n("Lists all sessions")));
|
||||
}
|
||||
|
||||
SessionRunner::~SessionRunner()
|
||||
|
|
|
@ -163,5 +163,4 @@ X-KDE-PluginInfo-Email=plasma-devel@kde.org
|
|||
X-KDE-PluginInfo-Name=shell
|
||||
X-KDE-PluginInfo-Version=1.0
|
||||
X-KDE-PluginInfo-License=LGPL
|
||||
X-Plasma-AdvertiseSingleRunnerQueryMode=true
|
||||
X-KDE-PluginInfo-EnabledByDefault=true
|
||||
|
|
|
@ -148,4 +148,3 @@ X-KDE-PluginInfo-Name=solid
|
|||
X-KDE-PluginInfo-Version=1.0
|
||||
X-KDE-PluginInfo-License=GPL
|
||||
X-KDE-PluginInfo-EnabledByDefault=true
|
||||
X-Plasma-AdvertiseSingleRunnerQueryMode=true
|
||||
|
|
|
@ -54,7 +54,7 @@ SolidRunner::SolidRunner(QObject *parent, const QVariantList &args)
|
|||
|
||||
addSyntax(Plasma::RunnerSyntax(":q:", i18n("Finds devices whose name match :q:")));
|
||||
|
||||
setDefaultSyntax(
|
||||
addSyntax(
|
||||
Plasma::RunnerSyntax(
|
||||
i18nc("Note this is a KRunner keyword", "device"),
|
||||
i18n("Lists all devices and allows them to be mounted, unmounted or ejected.")
|
||||
|
|
|
@ -125,5 +125,4 @@ X-KDE-PluginInfo-Email=tpr@iki.fi
|
|||
X-KDE-PluginInfo-Name=webshortcuts
|
||||
X-KDE-PluginInfo-Version=1.0
|
||||
X-KDE-PluginInfo-License=LGPL
|
||||
X-Plasma-AdvertiseSingleRunnerQueryMode=true
|
||||
X-KDE-PluginInfo-EnabledByDefault=true
|
||||
|
|
|
@ -132,4 +132,3 @@ X-KDE-PluginInfo-Name=org.kde.windowedwidgets
|
|||
X-KDE-PluginInfo-Version=1.0
|
||||
X-KDE-PluginInfo-License=LGPL
|
||||
X-KDE-PluginInfo-EnabledByDefault=true
|
||||
X-Plasma-AdvertiseSingleRunnerQueryMode=true
|
||||
|
|
|
@ -38,7 +38,7 @@ WindowedWidgetsRunner::WindowedWidgetsRunner(QObject *parent, const QVariantList
|
|||
setPriority(AbstractRunner::HighestPriority);
|
||||
|
||||
addSyntax(Plasma::RunnerSyntax(":q:", i18n("Finds Plasma widgets whose name or description match :q:")));
|
||||
setDefaultSyntax(Plasma::RunnerSyntax(i18nc("Note this is a KRunner keyword", "mobile applications"), i18n("list all Plasma widgets that can run as standalone applications")));
|
||||
addSyntax(Plasma::RunnerSyntax(i18nc("Note this is a KRunner keyword", "mobile applications"), i18n("list all Plasma widgets that can run as standalone applications")));
|
||||
}
|
||||
|
||||
WindowedWidgetsRunner::~WindowedWidgetsRunner()
|
||||
|
@ -49,7 +49,7 @@ void WindowedWidgetsRunner::match(Plasma::RunnerContext &context)
|
|||
{
|
||||
const QString term = context.query();
|
||||
|
||||
if (!context.singleRunnerQueryMode() && term.length() < 3) {
|
||||
if (term.length() < 3) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -146,4 +146,3 @@ X-KDE-PluginInfo-Name=windows
|
|||
X-KDE-PluginInfo-Version=1.0
|
||||
X-KDE-PluginInfo-License=GPL
|
||||
X-KDE-PluginInfo-EnabledByDefault=true
|
||||
X-Plasma-AdvertiseSingleRunnerQueryMode=true
|
||||
|
|
|
@ -44,7 +44,7 @@ WindowsRunner::WindowsRunner(QObject* parent, const QVariantList& args)
|
|||
"It is possible to interact with the windows by using one of the following keywords: "
|
||||
"activate, close, min(imize), max(imize), fullscreen, shade, keep above and keep below.")));
|
||||
addSyntax(Plasma::RunnerSyntax(":q:", i18n("Switch to desktop named :q:")));
|
||||
setDefaultSyntax(Plasma::RunnerSyntax(i18nc("Note this is a KRunner keyword", "window"),
|
||||
addSyntax(Plasma::RunnerSyntax(i18nc("Note this is a KRunner keyword", "window"),
|
||||
i18n("Lists all windows and allows to activate them. "
|
||||
"With name=, class=, role= and desktop= the list can be reduced to "
|
||||
"windows matching these restrictions. "
|
||||
|
@ -117,8 +117,7 @@ void WindowsRunner::match(Plasma::RunnerContext& context)
|
|||
}
|
||||
|
||||
QString term = context.query();
|
||||
|
||||
if (!context.singleRunnerQueryMode() && (term.length() < 3)) {
|
||||
if (term.length() < 3) {
|
||||
return;
|
||||
}
|
||||
QList<Plasma::QueryMatch> matches;
|
||||
|
|
Loading…
Add table
Reference in a new issue