aboutsummaryrefslogtreecommitdiffstats
path: root/homescreen/qml/ShortcutArea.qml
diff options
context:
space:
mode:
authorzheng_wenlong <wenlong_zheng@nexty-ele.com>2018-06-19 15:05:20 +0900
committerzheng_wenlong <wenlong_zheng@nexty-ele.com>2018-06-19 15:06:49 +0900
commit63e7ab867c75ac550b923815955e6dae3f0da984 (patch)
tree55edf9dfe3c28536ef04758d5b0c159b9d1ee4f6 /homescreen/qml/ShortcutArea.qml
parent14e3586827071d1d2ed822ef452f6513cf01044e (diff)
Delete launcher icon area from HomeScreen
Delete Home QML file from main.qml. Change Home shortcut icon to launcher. Change-Id: Id1b3ffbbd24ee587a1d3bab1f86c90809bfc1209 Task-AGL: SPEC-1518 Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
Diffstat (limited to 'homescreen/qml/ShortcutArea.qml')
-rw-r--r--homescreen/qml/ShortcutArea.qml26
1 files changed, 7 insertions, 19 deletions
diff --git a/homescreen/qml/ShortcutArea.qml b/homescreen/qml/ShortcutArea.qml
index 150658c..e0c9182 100644
--- a/homescreen/qml/ShortcutArea.qml
+++ b/homescreen/qml/ShortcutArea.qml
@@ -28,8 +28,8 @@ Item {
ListModel {
id: applicationModel
ListElement {
- name: 'Home'
- application: ''
+ name: 'launcher'
+ application: 'launcher@0.1'
}
ListElement {
name: 'MediaPlayer'
@@ -58,27 +58,15 @@ Item {
name: model.name
active: model.name === launcher.current
onClicked: {
- if (0 === model.index) {
- appLauncherAreaLauncher.visible = true
- applicationArea.visible = false
- launcher.current = 'Home'
+ pid = launcher.launch(model.application)
+ if (1 < pid) {
+ applicationArea.visible = true
}
else {
- pid = launcher.launch(model.application)
- if (1 < pid) {
- applicationArea.visible = true
- appLauncherAreaLauncher.visible = false
- }
- else {
- console.warn(model.application)
- console.warn("app cannot be launched!")
- }
+ console.warn(model.application)
+ console.warn("app cannot be launched!")
}
homescreenHandler.tapShortcut(model.name)
- if(model.name == 'Home')
- {
- layoutHandler.activateSurface('HomeScreen');
- }
}
}
}