aboutsummaryrefslogtreecommitdiffstats
path: root/homescreen/qml/ShortcutArea.qml
diff options
context:
space:
mode:
authorScott Anderson <scott.anderson@collabora.com>2019-12-04 19:58:38 +1300
committerMarius Vlad <marius.vlad@collabora.com>2020-01-21 19:34:11 +0200
commit6ad00da3657439c37fbe2c2a1d91e2fcf5dd52fc (patch)
treefea187efd64b7e32406e512fc34941cf962f0fbf /homescreen/qml/ShortcutArea.qml
parent90ae27de32e360a786a87005f7b0d0401ee33be4 (diff)
Add basic support for app switching
Signed-off-by: Scott Anderson <scott.anderson@collabora.com> Change-Id: Ifd839ee15022f98987d46c454da90fc70de7fa38
Diffstat (limited to 'homescreen/qml/ShortcutArea.qml')
-rw-r--r--homescreen/qml/ShortcutArea.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/homescreen/qml/ShortcutArea.qml b/homescreen/qml/ShortcutArea.qml
index 9e404dc..d470231 100644
--- a/homescreen/qml/ShortcutArea.qml
+++ b/homescreen/qml/ShortcutArea.qml
@@ -18,6 +18,7 @@
import QtQuick 2.2
import QtQuick.Layouts 1.1
+import QtQuick.Window 2.2
Item {
id: root
@@ -25,7 +26,7 @@ Item {
ListModel {
id: applicationModel
ListElement {
- appid: 'launcher'
+ appid: "launcher"
name: 'launcher'
application: 'launcher@0.1'
}
@@ -59,7 +60,7 @@ Item {
name: model.name
active: model.name === launcher.current
onClicked: {
- homescreenHandler.tapShortcut(model.appid)
+ shell.activate_app(Window.window, model.appid)
}
}
}