diff options
author | Tasuku Suzuki <tasuku.suzuki@qt.io> | 2016-12-20 20:17:10 +0900 |
---|---|---|
committer | Tasuku Suzuki <tasuku.suzuki@qt.io> | 2016-12-20 20:17:10 +0900 |
commit | c4242e92275d4309d3947ff28a7cd3b9f008d8c6 (patch) | |
tree | d75a24b47ec37647a54789f3bdaed58185eb3c1d /HomeScreen/qml/ShortcutArea.qml | |
parent | 1ec9bfac42b0ddd9fb61449a1a8ecdd43b218185 (diff) |
Fix highlight on Shortcut area
Change-Id: I426bcc55842711c1cd00d11163c12899c00a9e42
Signed-off-by: Tasuku Suzuki <tasuku.suzuki@qt.io>
Diffstat (limited to 'HomeScreen/qml/ShortcutArea.qml')
-rw-r--r-- | HomeScreen/qml/ShortcutArea.qml | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/HomeScreen/qml/ShortcutArea.qml b/HomeScreen/qml/ShortcutArea.qml index 9e71a94..1d7dd92 100644 --- a/HomeScreen/qml/ShortcutArea.qml +++ b/HomeScreen/qml/ShortcutArea.qml @@ -28,7 +28,7 @@ Item { id: applicationModel ListElement { name: 'Home' - application: 'home@0.1' + application: '' } ListElement { name: 'Multimedia' @@ -44,7 +44,6 @@ Item { } } - property int currentIndex: -1 // TODO: to be moved to whereever right property int pid: -1 RowLayout { @@ -56,13 +55,13 @@ Item { Layout.fillWidth: true Layout.fillHeight: true name: model.name - active: model.index === root.currentIndex + active: model.application === launcher.current onClicked: { - root.currentIndex = active ? -1 : model.index if (0 === model.index) { appLauncherAreaLauncher.visible = true applicationArea.visible = false layoutHandler.hideAppLayer() + launcher.current = '' } else { pid = launcher.launch(model.application) |