Commit 64f46dc0 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[System Tray] Add button to open plasmoid configuration from "Entries" page

Accessing the configuration of plasmoids inside System Tray can sometimes be tricky,
add a button to allow configuring them from the "Entries" page.
parent afd1b432
......@@ -100,6 +100,11 @@ ColumnLayout {
Layout.preferredWidth: itemsList.keySequenceColumnWidth
Component.onCompleted: itemsList.keySequenceColumnWidth = Math.max(implicitWidth, itemsList.keySequenceColumnWidth)
}
QQC2.Button { // Configure button column
icon.name: "configure"
enabled: false
opacity: 0
}
}
}
......@@ -111,7 +116,6 @@ ColumnLayout {
}
delegate: Kirigami.AbstractListItem {
highlighted: false
hoverEnabled: false
......@@ -268,6 +272,21 @@ ColumnLayout {
Layout.maximumWidth: itemsList.keySequenceColumnWidth
visible: !keySequenceItem.visible
}
QQC2.Button {
readonly property QtObject configureAction: (model.applet && model.applet.action("configure")) || null
Accessible.name: configureAction ? configureAction.text : ""
icon.name: "configure"
enabled: configureAction && configureAction.visible && configureAction.enabled
// Still reserve layout space, so not setting visible to false
opacity: enabled ? 1 : 0
onClicked: configureAction.trigger()
QQC2.ToolTip {
text: parent.Accessible.name
}
}
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment