Commit 340da40a authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

applets/clipboard: add text to toolbuttons

Ref: plasma-desktop#41
parent 00cfc34d
Pipeline #208684 passed with stage
in 8 minutes and 39 seconds
......@@ -80,10 +80,14 @@ ColumnLayout {
id: configureButton
checkable: true
icon.name: "configure"
display: PlasmaComponents3.AbstractButton.IconOnly
text: i18n("Change the QR code type")
onClicked: menu.openRelative()
PlasmaComponents3.ToolTip {
text: i18n("Change the QR code type")
text: parent.text
}
}
}
......
......@@ -116,13 +116,17 @@ Menu {
visible: !(Plasmoid.containmentDisplayHints & PlasmaCore.Types.ContainmentDrawsPlasmoidHeading) && Plasmoid.action("clearHistory").visible
icon.name: "edit-clear-history"
display: PlasmaComponents3.AbstractButton.IconOnly
text: Plasmoid.action("clearHistory").text
onClicked: {
clipboardSource.service("", "clearHistory")
filter.clear()
}
PlasmaComponents3.ToolTip {
text: i18n("Clear history")
text: parent.text
}
}
}
......
......@@ -18,10 +18,14 @@ RowLayout {
id: actionToolButton
// TODO: only show for items supporting actions?
icon.name: "system-run"
display: PlasmaComponents3.AbstractButton.IconOnly
text: i18n("Invoke action")
onClicked: menuItem.action(UuidRole)
PlasmaComponents3.ToolTip {
text: i18n("Invoke action")
text: parent.text
}
KeyNavigation.right: barcodeToolButton
}
......@@ -29,10 +33,14 @@ RowLayout {
id: barcodeToolButton
icon.name: "view-barcode-qr"
visible: supportsBarcodes
display: PlasmaComponents3.AbstractButton.IconOnly
text: i18n("Show QR code")
onClicked: menuItem.barcode(DisplayRole)
PlasmaComponents3.ToolTip {
text: i18n("Show QR code")
text: parent.text
}
KeyNavigation.right: editToolButton
}
......@@ -41,20 +49,28 @@ RowLayout {
icon.name: "document-edit"
enabled: !clipboardSource.editing
visible: TypeRole === 0
display: PlasmaComponents3.AbstractButton.IconOnly
text: i18n("Edit contents")
onClicked: menuItem.edit(UuidRole)
PlasmaComponents3.ToolTip {
text: i18n("Edit contents")
text: parent.text
}
KeyNavigation.right: deleteToolButton
}
PlasmaComponents3.ToolButton {
id: deleteToolButton
icon.name: "edit-delete"
display: PlasmaComponents3.AbstractButton.IconOnly
text: i18n("Remove from history")
onClicked: menuItem.remove(UuidRole)
PlasmaComponents3.ToolTip {
text: i18n("Remove from history")
text: parent.text
}
}
}
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