diff options
author | Robert Griebl <robert.griebl@qt.io> | 2019-10-13 16:56:51 +0200 |
---|---|---|
committer | Robert Griebl <robert.griebl@qt.io> | 2019-10-28 14:11:42 +0100 |
commit | 495cc72c005cbb7796e557b0995f130c1d128a7b (patch) | |
tree | 9266c35d1b5851cd4b88b1856f425df0f1ca7d34 /examples/applicationmanager/intents | |
parent | 0a1cccfccd8f76014bc697c5c9006c5ebb9723e8 (diff) |
Change intent implementation to better fit new architecture
- IntentServer is now a list model as all the other singletons.
- IntentModel is the companion filter model for the IntentServer, just like
the ApplicationModel is for the ApplicationManager
- Intent is now a Q_OBJECT instead of a Q_GADGET
Change-Id: Ifead097c543fb00b08ab21210e4526a6f65ba167
Reviewed-by: Dominik Holland <dominik.holland@qt.io>
Diffstat (limited to 'examples/applicationmanager/intents')
-rw-r--r-- | examples/applicationmanager/intents/system-ui.qml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/applicationmanager/intents/system-ui.qml b/examples/applicationmanager/intents/system-ui.qml index 328eb63b..e3198f80 100644 --- a/examples/applicationmanager/intents/system-ui.qml +++ b/examples/applicationmanager/intents/system-ui.qml @@ -1,5 +1,6 @@ /**************************************************************************** ** +** Copyright (C) 2019 The Qt Company Ltd. ** Copyright (C) 2019 Luxoft Sweden AB ** Copyright (C) 2018 Pelagicore AG ** Contact: https://www.qt.io/licensing/ @@ -204,8 +205,8 @@ Item { delegate: ItemDelegate { property ApplicationObject application: ApplicationManager.application(modelData.applicationId) width: parent.width - text: application.name("en") + " (" + modelData.applicationId + ")" - icon.source: application.icon + text: modelData.name + " (" + modelData.applicationId + ")" + icon.source: modelData.icon icon.color: "transparent" highlighted: ListView.isCurrentItem onClicked: { handlingApplications.currentIndex = index } |