aboutsummaryrefslogtreecommitdiffstats
path: root/homescreen/qml/ShortcutArea.qml
diff options
context:
space:
mode:
authorTasuku Suzuki <tasuku.suzuki@qt.io>2017-05-26 11:09:59 +0900
committerTasuku Suzuki <tasuku.suzuki@qt.io>2017-05-26 11:13:16 +0900
commitda726aa2bdb0aa4bad33c2cfbdefa46f90fb6c17 (patch)
tree7e8a4bcc648ce2286bab13e082d6608a610624b8 /homescreen/qml/ShortcutArea.qml
parentfbdd80c3c6fd9b27ce1cbe21941baa8a643050fe (diff)
PoC: Qt Compositor-ized homescreensandbox/tasuku/qt-compositor-ized
Change-Id: Icec91030f8f4a8bf001b30ba9b7547751abfafed Signed-off-by: Tasuku Suzuki <tasuku.suzuki@qt.io>
Diffstat (limited to 'homescreen/qml/ShortcutArea.qml')
-rw-r--r--homescreen/qml/ShortcutArea.qml20
1 files changed, 2 insertions, 18 deletions
diff --git a/homescreen/qml/ShortcutArea.qml b/homescreen/qml/ShortcutArea.qml
index 14c7b6b..bdbd59a 100644
--- a/homescreen/qml/ShortcutArea.qml
+++ b/homescreen/qml/ShortcutArea.qml
@@ -57,24 +57,8 @@ Item {
name: model.name
active: model.application === launcher.current
onClicked: {
- if (0 === model.index) {
- appLauncherAreaLauncher.visible = true
- applicationArea.visible = false
- layoutHandler.hideAppLayer()
- launcher.current = ''
- }
- else {
- pid = launcher.launch(model.application)
- if (1 < pid) {
- applicationArea.visible = true
- appLauncherAreaLauncher.visible = false
- layoutHandler.makeMeVisible(pid)
- layoutHandler.showAppLayer(pid)
- }
- else {
- console.warn("app cannot be launched!")
- }
- }
+ if (model.index < 3) // disable navi to launch
+ launcher.show(model.index === 0 ? '' : model.application)
}
}
}