Changeset View
Changeset View
Standalone View
Standalone View
cuttlefish/package/contents/ui/Actions.qml
Show All 27 Lines | |||||
28 | Item { | 28 | Item { | ||
29 | property list<Kirigami.Action> actions:[ | 29 | property list<Kirigami.Action> actions:[ | ||
30 | Kirigami.Action { | 30 | Kirigami.Action { | ||
31 | text: i18n("Open icon with external program") | 31 | text: i18n("Open icon with external program") | ||
32 | iconName: "document-open" | 32 | iconName: "document-open" | ||
33 | onTriggered: Qt.openUrlExternally(preview.fullPath) | 33 | onTriggered: Qt.openUrlExternally(preview.fullPath) | ||
34 | }, | 34 | }, | ||
35 | Kirigami.Action { | 35 | Kirigami.Action { | ||
36 | iconName: "document-open-folder" | ||||
37 | text: i18n("Open containing folder") | ||||
38 | onTriggered: iconModel.openContainingFolder(preview.fullPath) | ||||
39 | }, | ||||
40 | Kirigami.Action { | ||||
36 | text: pickerMode ? i18n("Insert icon name") : i18n("Copy icon name to clipboard") | 41 | text: pickerMode ? i18n("Insert icon name") : i18n("Copy icon name to clipboard") | ||
37 | iconName: "edit-copy" | 42 | iconName: "edit-copy" | ||
38 | onTriggered: { | 43 | onTriggered: { | ||
39 | clipboard(preview.iconName) | 44 | clipboard(preview.iconName) | ||
40 | cuttlefish.showPassiveNotification(i18n("Icon name copied to clipboard"), "short") | 45 | cuttlefish.showPassiveNotification(i18n("Icon name copied to clipboard"), "short") | ||
41 | } | 46 | } | ||
42 | }, | 47 | }, | ||
43 | Kirigami.Action { | 48 | Kirigami.Action { | ||
▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines |