Changeset View
Changeset View
Standalone View
Standalone View
discover/qml/SourcesPage.qml
Show First 20 Lines • Show All 111 Lines • ▼ Show 20 Line(s) | 92 | menu: Menu { | |||
---|---|---|---|---|---|
112 | } | 112 | } | ||
113 | 113 | | |||
114 | Instantiator { | 114 | Instantiator { | ||
115 | id: backendActionsInst | 115 | id: backendActionsInst | ||
116 | model: ActionsModel { | 116 | model: ActionsModel { | ||
117 | actions: backendItem.backend ? backendItem.backend.actions : undefined | 117 | actions: backendItem.backend ? backendItem.backend.actions : undefined | ||
118 | } | 118 | } | ||
119 | delegate: MenuItem { | 119 | delegate: MenuItem { | ||
120 | action: ActionBridge { action: action } | 120 | action: ActionBridge { action: modelData } | ||
121 | } | 121 | } | ||
122 | onObjectAdded: { | 122 | onObjectAdded: { | ||
123 | settingsMenu.insertItem(index, object) | 123 | settingsMenu.insertItem(index, object) | ||
124 | } | 124 | } | ||
125 | onObjectRemoved: { | 125 | onObjectRemoved: { | ||
126 | object.destroy() | 126 | object.destroy() | ||
127 | } | 127 | } | ||
128 | } | 128 | } | ||
▲ Show 20 Lines • Show All 97 Lines • Show Last 20 Lines |