mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
show wallpaper configuration on long press
This commit is contained in:
parent
15844cef9a
commit
3ae3db587b
2 changed files with 8 additions and 2 deletions
|
|
@ -1,4 +1,5 @@
|
|||
var id = currentActivity();
|
||||
|
||||
if (id.length < 1) {
|
||||
id = createActivity("Homescreen")
|
||||
}
|
||||
|
|
@ -6,7 +7,7 @@ if (id.length < 1) {
|
|||
var desktopsArray = desktopsForActivity(id);
|
||||
for (var j = 0; j < desktopsArray.length; j++) {
|
||||
desktopsArray[j].wallpaperPlugin = "org.kde.image";
|
||||
desktopsArray[j].name = "Homescreen" + (j > 0 ? " " + j : "");
|
||||
//desktopsArray[j].name = "Homescreen" + (j > 0 ? " " + j : "");
|
||||
desktopsArray[j].currentConfigGroup = ["Wallpaper",
|
||||
desktopsArray[j].wallpaperPlugin,
|
||||
"General"];
|
||||
|
|
|
|||
|
|
@ -26,11 +26,12 @@ import org.kde.satellite.components 0.1 as SatelliteComponents
|
|||
import org.kde.plasma.components 2.0 as PlasmaComponents
|
||||
import org.kde.plasma.workspace.components 2.0 as PlasmaWorkspace
|
||||
import org.nemomobile.voicecall 1.0
|
||||
import org.kde.kquickcontrolsaddons 2.0
|
||||
import org.freedesktop.contextkit 1.0
|
||||
import MeeGo.QOfono 0.2
|
||||
import "../components"
|
||||
|
||||
Item {
|
||||
MouseEventListener {
|
||||
id: homescreen
|
||||
width: 1080
|
||||
height: 1920
|
||||
|
|
@ -88,6 +89,10 @@ Item {
|
|||
}
|
||||
}
|
||||
|
||||
onPressAndHold: {
|
||||
containment.action("configure").trigger();
|
||||
}
|
||||
|
||||
OfonoManager {
|
||||
id: ofonoManager
|
||||
onAvailableChanged: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue