diff options
author | Tasuku Suzuki <tasuku.suzuki@qt.io> | 2017-05-26 11:09:59 +0900 |
---|---|---|
committer | Tasuku Suzuki <tasuku.suzuki@qt.io> | 2017-05-26 11:13:16 +0900 |
commit | da726aa2bdb0aa4bad33c2cfbdefa46f90fb6c17 (patch) | |
tree | 7e8a4bcc648ce2286bab13e082d6608a610624b8 /homescreen/src/applicationmodel.cpp | |
parent | fbdd80c3c6fd9b27ce1cbe21941baa8a643050fe (diff) |
PoC: Qt Compositor-ized homescreensandbox/tasuku/qt-compositor-ized
Change-Id: Icec91030f8f4a8bf001b30ba9b7547751abfafed
Signed-off-by: Tasuku Suzuki <tasuku.suzuki@qt.io>
Diffstat (limited to 'homescreen/src/applicationmodel.cpp')
-rw-r--r-- | homescreen/src/applicationmodel.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/homescreen/src/applicationmodel.cpp b/homescreen/src/applicationmodel.cpp index 417bc4c..c940149 100644 --- a/homescreen/src/applicationmodel.cpp +++ b/homescreen/src/applicationmodel.cpp @@ -54,10 +54,19 @@ ApplicationModel::Private::Private() { QString apps = afm_user_daemon_proxy->runnables(QStringLiteral("")); QJsonDocument japps = QJsonDocument::fromJson(apps.toUtf8()); + // disable apps which don't work with the compositor right now + QStringList notShow = { + "navigation@0.1" + , "phone@0.1" + , "controls@0.1" + , "poi@0.1" + , "mixer@0.1" + }; for (auto const &app : japps.array()) { QJsonObject const &jso = app.toObject(); auto const name = jso["name"].toString(); auto const id = jso["id"].toString(); + if (notShow.contains(id)) continue; auto const icon = get_icon_name(jso); this->data.append(AppInfo(icon, name, id)); qDebug() << "name:" << name << "icon:" << icon << "id:" << id; |