Changeset View
Changeset View
Standalone View
Standalone View
applets/clipboard/contents/ui/DelegateToolButtons.qml
Show All 30 Lines | 29 | PlasmaComponents.ToolButton { | |||
---|---|---|---|---|---|
31 | iconSource: "system-run" | 31 | iconSource: "system-run" | ||
32 | tooltip: i18n("Invoke action") | 32 | tooltip: i18n("Invoke action") | ||
33 | onClicked: menuItem.action(UuidRole) | 33 | onClicked: menuItem.action(UuidRole) | ||
34 | } | 34 | } | ||
35 | PlasmaComponents.ToolButton { | 35 | PlasmaComponents.ToolButton { | ||
36 | id: barcodeToolButton | 36 | id: barcodeToolButton | ||
37 | iconSource: "view-barcode-qr" | 37 | iconSource: "view-barcode-qr" | ||
38 | tooltip: i18n("Show barcode") | 38 | tooltip: i18n("Show barcode") | ||
39 | onClicked: menuItem.barcode(UuidRole) | 39 | visible: supportsBarcodes | ||
40 | onClicked: menuItem.barcode(DisplayRole) | ||||
40 | } | 41 | } | ||
41 | PlasmaComponents.ToolButton { | 42 | PlasmaComponents.ToolButton { | ||
42 | iconSource: "document-edit" | 43 | iconSource: "document-edit" | ||
43 | enabled: !clipboardSource.editing | 44 | enabled: !clipboardSource.editing | ||
44 | visible: TypeRole === 0 | 45 | visible: TypeRole === 0 | ||
45 | tooltip: i18n("Edit contents") | 46 | tooltip: i18n("Edit contents") | ||
46 | onClicked: menuItem.edit(UuidRole) | 47 | onClicked: menuItem.edit(UuidRole) | ||
47 | } | 48 | } | ||
48 | PlasmaComponents.ToolButton { | 49 | PlasmaComponents.ToolButton { | ||
49 | iconSource: "edit-delete" | 50 | iconSource: "edit-delete" | ||
50 | tooltip: i18n("Remove from history") | 51 | tooltip: i18n("Remove from history") | ||
51 | onClicked: menuItem.remove(UuidRole) | 52 | onClicked: menuItem.remove(UuidRole) | ||
52 | } | 53 | } | ||
53 | } | 54 | } |