diff options
author | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2018-12-03 17:27:29 +0900 |
---|---|---|
committer | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2018-12-03 17:27:29 +0900 |
commit | 41197066de4791e8158e5dcadf10ac2a728bb80d (patch) | |
tree | a01aa5d343526074e48ba6bce684fbcfcb973f66 | |
parent | 2fe96de41a540477d425403cf3a59ec6f5871521 (diff) |
add source for ces2019sandbox/zheng_wenlong/ces2019
-rw-r--r-- | src/aglextras/aglextras.pro | 5 | ||||
-rw-r--r-- | src/aglextras/hmi/aglwmclient.cpp | 9 |
2 files changed, 12 insertions, 2 deletions
diff --git a/src/aglextras/aglextras.pro b/src/aglextras/aglextras.pro index 24028a9..ecfe5c1 100644 --- a/src/aglextras/aglextras.pro +++ b/src/aglextras/aglextras.pro @@ -9,5 +9,8 @@ qtConfig(agl_hmi_framework) { DEFINES += USE_AGL_HMI_LOWLEVEL_API QMAKE_USE += libhomescreen libwindowmanager } - +DEFINES += USE_AGL_HMI_LOWLEVEL_API +CONFIG += link_pkgconfig +PKGCONFIG += libwindowmanager libhomescreen +LIBS += -ljson-c load(qt_module) diff --git a/src/aglextras/hmi/aglwmclient.cpp b/src/aglextras/hmi/aglwmclient.cpp index 5c79832..59518a3 100644 --- a/src/aglextras/hmi/aglwmclient.cpp +++ b/src/aglextras/hmi/aglwmclient.cpp @@ -159,7 +159,14 @@ AGLWmClient::AGLWmClient (const QString&, int port, QString) LibHomeScreen::Event_TapShortcut, [this](json_object* object) { qDebug("Surface got tapShortcut\n"); - activate_window(); + struct json_object *obj_param = nullptr, *obj_area = nullptr; + if(json_object_object_get_ex(object, "parameter", &obj_param) + && json_object_object_get_ex(obj_param, "area", &obj_area)) { + w_ptr->activateWindow(d_ptr->layout.toStdString().c_str(), json_object_get_string(obj_area)); + } + else { + w_ptr->activateWindow(d_ptr->layout.toStdString().c_str(), "normal"); + } } ); #endif // USE_AGL_HMI_LOWLEVEL_API |