From 5fbb59e80e4f870a1badd694d2efcd8cd941cdfb Mon Sep 17 00:00:00 2001 From: zheng_wenlong Date: Mon, 6 Aug 2018 12:05:59 +0900 Subject: Use appid between homescreen-service and apps Use appid between hss and apps, and check event destination in libhomescreen. So these is no need compare code when recived Event_TapShortcut Event. BUG-AGL: SPEC-1645 Change-Id: I02a87f289c6da0a86012fd304fb1f2d2452ee990 Signed-off-by: zheng_wenlong --- launcher/src/applicationmodel.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'launcher/src/applicationmodel.cpp') diff --git a/launcher/src/applicationmodel.cpp b/launcher/src/applicationmodel.cpp index 17e38fb..14e2ea1 100644 --- a/launcher/src/applicationmodel.cpp +++ b/launcher/src/applicationmodel.cpp @@ -127,6 +127,12 @@ QString ApplicationModel::id(int i) const return data(index(i), Qt::UserRole).toString(); } +QString ApplicationModel::appid(int i) const +{ + QString id = data(index(i), Qt::UserRole).toString(); + return id.split("@")[0]; +} + QString ApplicationModel::name(int i) const { return data(index(i), Qt::DisplayRole).toString(); -- cgit 1.2.3-korg