Skip to content

Commit f8db323

Browse files
committed
qml: expose the currently loaded action item
This exposes the actual loaded item as a property. This will allow us to tell the action item when the setting has been clicked.
1 parent 3d984a6 commit f8db323

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/qml/controls/Setting.qml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ AbstractButton {
1111
property bool last: parent && root === parent.children[parent.children.length - 1]
1212
required property string header
1313
property alias actionItem: action_loader.sourceComponent
14+
property alias loadedItem: action_loader.item
1415
property string description
1516

1617
contentItem: ColumnLayout {

0 commit comments

Comments
 (0)