Commit 30530ab3 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[Kickoff] Move RunnerModel to SearchView

It's only used there.

Differential Revision: https://phabricator.kde.org/D10540
parent ff226958
......@@ -98,25 +98,6 @@ Item {
}
}
Kicker.RunnerModel {
id: runnerModel
appletInterface: plasmoid
runners: {
var runners = ["services", "places", "desktopsessions",
"PowerDevil"];
if (plasmoid.configuration.useExtraRunners) {
runners = runners.concat(plasmoid.configuration.runners);
}
return runners;
}
mergeResults: true
favoritesModel: globalFavorites
}
PlasmaCore.DataSource {
id: pmSource
engine: "powermanagement"
......
......@@ -22,6 +22,8 @@ import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.extras 2.0 as PlasmaExtras
import org.kde.plasma.components 2.0 as PlasmaComponents
import org.kde.plasma.private.kicker 0.1 as Kicker
Item {
id: searchViewContainer
......@@ -45,6 +47,25 @@ Item {
searchView.currentItem.openActionMenu();
}
Kicker.RunnerModel {
id: runnerModel
appletInterface: plasmoid
runners: {
var runners = ["services", "places", "desktopsessions",
"PowerDevil"];
if (plasmoid.configuration.useExtraRunners) {
runners = runners.concat(plasmoid.configuration.runners);
}
return runners;
}
mergeResults: true
favoritesModel: globalFavorites
}
PlasmaExtras.ScrollArea {
anchors.fill: parent
......
Supports Markdown
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