Changeset View
Changeset View
Standalone View
Standalone View
discover/qml/ApplicationPage.qml
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Line(s) | 68 | Kirigami.Action { | |||
---|---|---|---|---|---|
74 | readonly property var r0: Instantiator { | 74 | readonly property var r0: Instantiator { | ||
75 | model: ResourcesProxyModel { | 75 | model: ResourcesProxyModel { | ||
76 | id: alternativeResourcesModel | 76 | id: alternativeResourcesModel | ||
77 | allBackends: true | 77 | allBackends: true | ||
78 | resourcesUrl: appInfo.application.url | 78 | resourcesUrl: appInfo.application.url | ||
79 | } | 79 | } | ||
80 | delegate: Action { | 80 | delegate: Action { | ||
81 | ActionGroup.group: sourcesGroup | 81 | ActionGroup.group: sourcesGroup | ||
82 | text: displayOrigin | 82 | text: i18n("%1 - %2", displayOrigin, model.application.availableVersion) | ||
83 | icon.name: sourceIcon | 83 | icon.name: sourceIcon | ||
84 | checkable: true | 84 | checkable: true | ||
85 | checked: appInfo.application == model.application | 85 | checked: appInfo.application == model.application | ||
86 | onTriggered: if(index>=0) { | 86 | onTriggered: if(index>=0) { | ||
87 | var res = model.application | 87 | var res = model.application | ||
88 | console.assert(res) | 88 | console.assert(res) | ||
89 | window.stack.pop() | 89 | window.stack.pop() | ||
90 | Navigation.openApplication(res) | 90 | Navigation.openApplication(res) | ||
▲ Show 20 Lines • Show All 376 Lines • Show Last 20 Lines |