Changeset View
Changeset View
Standalone View
Standalone View
discover/qml/SourcesPage.qml
Show First 20 Lines • Show All 85 Lines • ▼ Show 20 Line(s) | 83 | // iconName: "list-add" | |||
---|---|---|---|---|---|
86 | visible: sourcesMenu.items.count > 0 | 86 | visible: sourcesMenu.items.count > 0 | ||
87 | tooltip: text | 87 | tooltip: text | ||
88 | menu: sourcesMenu | 88 | menu: sourcesMenu | ||
89 | } | 89 | } | ||
90 | Repeater { | 90 | Repeater { | ||
91 | model: SourcesModel.actions | 91 | model: SourcesModel.actions | ||
92 | 92 | | |||
93 | delegate: RowLayout { | 93 | delegate: RowLayout { | ||
94 | QIconItem { | 94 | Kirigami.Icon { | ||
95 | icon: modelData.icon | 95 | source: modelData.icon | ||
96 | } | 96 | } | ||
97 | ToolButton { | 97 | ToolButton { | ||
98 | height: parent.height | 98 | height: parent.height | ||
99 | action: Action { | 99 | action: Action { | ||
100 | readonly property QtObject action: modelData | 100 | readonly property QtObject action: modelData | ||
101 | text: action.text | 101 | text: action.text | ||
102 | onTriggered: action.trigger() | 102 | onTriggered: action.trigger() | ||
103 | enabled: action.enabled | 103 | enabled: action.enabled | ||
▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines |