X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=launcher%2Fqml%2FLauncher.qml;fp=launcher%2Fqml%2FLauncher.qml;h=3aef4e68d11e1f05b31e287f956b61767cf07323;hb=5e828161fc1571323e2812a344f6714ae9331b2c;hp=894ff9874c768d16c68bf89eb1287421954d9680;hpb=fd578508fe8f59a0bf11916ea99561125dcfc4ba;p=apps%2Flauncher.git diff --git a/launcher/qml/Launcher.qml b/launcher/qml/Launcher.qml index 894ff98..3aef4e6 100644 --- a/launcher/qml/Launcher.qml +++ b/launcher/qml/Launcher.qml @@ -67,7 +67,7 @@ ApplicationWindow { // uncomment this out if you want to highlight the currently selected item //highlight: Rectangle { width: 80; height: 80; color: "steelblue"; opacity: 0.3 } - model: ApplicationModel { id: applicationModel } + model: ApplicationModel delegate: Item { width: grid.cellWidth height: grid.cellHeight @@ -131,26 +131,13 @@ ApplicationWindow { property string currentApp: '' onClicked: { parent.GridView.view.currentIndex = index - currentApp = applicationModel.appid(parent.GridView.view.currentIndex) - homescreenHandler.tapShortcut(currentApp) + currentApp = ApplicationModel.appid(parent.GridView.view.currentIndex) + console.debug("Launcher: Starting app " + currentApp) + applauncher.startApplication(currentApp) + console.debug("Launcher: Started app " + currentApp) } } } - - Connections { - target: homescreenHandler - onAppListUpdate: { - console.warn("applist update in Launcher.qml") - applicationModel.updateApplist(info); - } - } - Connections { - target: homescreenHandler - onInitAppList: { - console.warn("applist init in Launcher.qml") - applicationModel.initAppList(data); - } - } } } }