diff options
author | wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com> | 2019-01-11 14:40:14 +0800 |
---|---|---|
committer | wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com> | 2019-01-11 14:46:40 +0800 |
commit | e8d1f16f785cc176a82a9b46e08e13eb89899437 (patch) | |
tree | 9fe1e66fb36830147daaddf41682e01af3bde2bb | |
parent | 053c8f803bb25433dab1202ca02a839c739d3923 (diff) |
Use Event_ShowWindow instead of Event_TapShortcut
The interface of homescreen service will be changed then,
use Event_ShowWindow instead of Event_TapShortcut.
Related changes:
agl-service-homescreen: https://gerrit.automotivelinux.org/gerrit/#/c/17929/
libhomescreen: https://gerrit.automotivelinux.org/gerrit/#/c/17931/
libqthomescreen: https://gerrit.automotivelinux.org/gerrit/#/c/17933/
BUG-AGL: SPEC-1931
Change-Id: Ia8e100483fd1a418789483169c815847d2b64b11
Signed-off-by: wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
-rw-r--r-- | launcher/src/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/launcher/src/main.cpp b/launcher/src/main.cpp index bd19036..291e9d5 100644 --- a/launcher/src/main.cpp +++ b/launcher/src/main.cpp @@ -123,9 +123,9 @@ int main(int argc, char *argv[]) homescreenHandler->init(port, token.toStdString().c_str()); - homescreenHandler->set_event_handler(QLibHomeScreen::Event_TapShortcut, [layoutHandler, myname](json_object *object){ - qDebug("Surface %s got tapShortcut\n", myname); - layoutHandler->activateSurface(myname); + homescreenHandler->set_event_handler(QLibHomeScreen::Event_ShowWindow, [layoutHandler, myname](json_object *object){ + qDebug("Surface %s got Event_ShowWindow\n", myname); + layoutHandler->activateWindow(myname); }); QUrl bindingAddress; |