Changeset View
Changeset View
Standalone View
Standalone View
cuttlefish/package/contents/ui/Menu.qml
Show All 26 Lines | 25 | Menu { | |||
---|---|---|---|---|---|
27 | Connections { | 27 | Connections { | ||
28 | target: cuttlefish | 28 | target: cuttlefish | ||
29 | onItemRightClicked: { | 29 | onItemRightClicked: { | ||
30 | root.open() | 30 | root.open() | ||
31 | } | 31 | } | ||
32 | } | 32 | } | ||
33 | MenuItem { | 33 | MenuItem { | ||
34 | iconName: "edit-copy" | 34 | iconName: "edit-copy" | ||
35 | text: i18n("Copy icon name to clipboard") | 35 | text: pickerMode ? i18n("Insert icon name") : i18n("Copy icon name to clipboard") | ||
36 | onTriggered: { | 36 | onTriggered: { | ||
37 | previewPane.clipboard(iconName) | 37 | previewPane.clipboard(preview.iconName) | ||
38 | cuttlefish.showPassiveNotification(i18n("Icon name copied to clipboard"), "short") | 38 | cuttlefish.showPassiveNotification(i18n("Icon name copied to clipboard"), "short") | ||
39 | } | 39 | } | ||
40 | } | 40 | } | ||
41 | MenuItem { | 41 | MenuItem { | ||
42 | iconName: "document-open" | 42 | iconName: "document-open" | ||
43 | text: i18n("Open icon with external program") | 43 | text: i18n("Open icon with external program") | ||
44 | onTriggered: { | 44 | onTriggered: { | ||
45 | Qt.openUrlExternally(preview.fullPath) | 45 | Qt.openUrlExternally(preview.fullPath) | ||
46 | } | 46 | } | ||
47 | } | 47 | } | ||
48 | } | 48 | } | ||
49 | No newline at end of file | |