summaryrefslogtreecommitdiffstats
path: root/wayland/democompositor/tests/applist/applist.qrc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2017-07-13 12:16:43 +0200
committerHolger Freyther <holger+qt@freyther.de>2017-09-12 06:14:39 +0000
commitdf9402f361b521877fdc2b1ec23a1e205699224c (patch)
tree92d9fb35db9aba34f668ccae2a9eaf3d6ec8e8de /wayland/democompositor/tests/applist/applist.qrc
parentc09aa96a136dd841e75b459d78ea27ad2bc4474c (diff)
democompositor: Introduce an AppListModel to expose apps
Turn the AppEntry into a gadget and store the filename of where the entry came from. Update the existing test to deal with it. Introduce AppListModel as a QAbstractItemModel and expose the raw AppEntry and its fields as role. Have some slow O(n) code to check if an entry has already been added. The goal is to use a directory watcher to automatically update this list. Store the AppEntry as a pointer so we don't have to remove the const from the field. The next steps are to fully populate the AppListModel by scanning and watching a directory and then replacing the LaunchButton code with a Repeater on the application model. After starting of apps will be done by passing the AppEntry to a launcher. Application state should be stored outside the AppEntry and maybe in a different model as well. Change-Id: Ia933a09942ea8bb88eae5c101d13a30564d8c639 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'wayland/democompositor/tests/applist/applist.qrc')
-rw-r--r--wayland/democompositor/tests/applist/applist.qrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/wayland/democompositor/tests/applist/applist.qrc b/wayland/democompositor/tests/applist/applist.qrc
new file mode 100644
index 0000000..04db642
--- /dev/null
+++ b/wayland/democompositor/tests/applist/applist.qrc
@@ -0,0 +1,6 @@
+<!DOCTYPE RCC><RCC version="1.0">
+<qresource prefix="/">
+ <file alias="app1.json">../../apps/files/clock.app</file>
+ <file alias="app2.json">../../apps/files/maps.app</file>
+</qresource>
+</RCC>