Commit 5d593212 authored by Volker Krause's avatar Volker Krause
Browse files

Rename action() signal in clipboard menu

The base class for this has an action property in Qt 6.
parent 57de3bf1
Pipeline #227012 passed with stage
in 8 minutes and 29 seconds
......@@ -30,7 +30,7 @@ PlasmaComponents.ItemDelegate {
signal remove(string uuid)
signal edit(string uuid)
signal barcode(string text)
signal action(string uuid)
signal triggerAction(string uuid)
// the 1.6 comes from ToolButton's default height
height: Math.max(label.height, Math.round(PlasmaCore.Units.gridUnit * 1.6)) + 2 * PlasmaCore.Units.smallSpacing
......
......@@ -160,7 +160,7 @@ Menu {
text: text
});
}
onAction: clipboardSource.service(uuid, "action")
onTriggerAction: clipboardSource.service(uuid, "action")
Component.onCompleted: {
// Intercept up/down key to prevent ListView from accepting the key event.
......
......@@ -22,7 +22,7 @@ RowLayout {
display: PlasmaComponents3.AbstractButton.IconOnly
text: i18n("Invoke action")
onClicked: menuItem.action(UuidRole)
onClicked: menuItem.triggerAction(UuidRole)
PlasmaComponents3.ToolTip {
text: parent.text
......
......@@ -25,7 +25,7 @@ PlasmaComponents3.ScrollView {
signal remove(string uuid)
signal edit(string uuid)
signal barcode(string text)
signal action(string uuid)
signal triggerAction(string uuid)
// HACK: workaround for https://bugreports.qt.io/browse/QTBUG-83890
PlasmaComponents3.ScrollBar.horizontal.policy: PlasmaComponents3.ScrollBar.AlwaysOff
......@@ -58,7 +58,7 @@ PlasmaComponents3.ScrollView {
onRemove: menu.remove(uuid)
onEdit: menu.edit(uuid)
onBarcode: menu.barcode(text)
onAction: menu.action(uuid)
onTriggerAction: menu.triggerAction(uuid)
Binding {
target: menuListView; when: hovered
......
Supports Markdown
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