@ -15,6 +15,7 @@ RowLayout {
visible: menuItem . ListView . isCurrentItem
visible: menuItem . ListView . isCurrentItem
PlasmaComponents3 . ToolButton {
PlasmaComponents3 . ToolButton {
id: actionToolButton
/ / T O D O : o n l y s h o w f o r i t e m s s u p p o r t i n g a c t i o n s ?
/ / T O D O : o n l y s h o w f o r i t e m s s u p p o r t i n g a c t i o n s ?
icon.name: "system-run"
icon.name: "system-run"
onClicked: menuItem . action ( UuidRole )
onClicked: menuItem . action ( UuidRole )
@ -22,6 +23,7 @@ RowLayout {
PlasmaComponents3 . ToolTip {
PlasmaComponents3 . ToolTip {
text: i18n ( "Invoke action" )
text: i18n ( "Invoke action" )
}
}
KeyNavigation.right: barcodeToolButton
}
}
PlasmaComponents3 . ToolButton {
PlasmaComponents3 . ToolButton {
id: barcodeToolButton
id: barcodeToolButton
@ -32,8 +34,10 @@ RowLayout {
PlasmaComponents3 . ToolTip {
PlasmaComponents3 . ToolTip {
text: i18n ( "Show QR code" )
text: i18n ( "Show QR code" )
}
}
KeyNavigation.right: editToolButton
}
}
PlasmaComponents3 . ToolButton {
PlasmaComponents3 . ToolButton {
id: editToolButton
icon.name: "document-edit"
icon.name: "document-edit"
enabled: ! clipboardSource . editing
enabled: ! clipboardSource . editing
visible: TypeRole === 0
visible: TypeRole === 0
@ -42,8 +46,10 @@ RowLayout {
PlasmaComponents3 . ToolTip {
PlasmaComponents3 . ToolTip {
text: i18n ( "Edit contents" )
text: i18n ( "Edit contents" )
}
}
KeyNavigation.right: deleteToolButton
}
}
PlasmaComponents3 . ToolButton {
PlasmaComponents3 . ToolButton {
id: deleteToolButton
icon.name: "edit-delete"
icon.name: "edit-delete"
onClicked: menuItem . remove ( UuidRole )
onClicked: menuItem . remove ( UuidRole )