Changeset View
Changeset View
Standalone View
Standalone View
framework/qml/AttachmentDelegate.qml
Context not available. | |||||
23 | id: root | 23 | id: root | ||
---|---|---|---|---|---|
24 | 24 | | |||
25 | property string name | 25 | property string name | ||
26 | property string type | ||||
26 | property string icon | 27 | property string icon | ||
27 | property alias actionIcon: actionButton.iconName | 28 | property alias actionIcon: actionButton.iconName | ||
28 | signal clicked; | 29 | signal clicked; | ||
29 | signal execute; | 30 | signal execute; | ||
31 | signal publicKeyImport; | ||||
30 | 32 | | |||
31 | width: content.width + Kube.Units.smallSpacing * 1.5 | 33 | width: content.width + Kube.Units.smallSpacing * 1.5 | ||
32 | height: content.height + Kube.Units.smallSpacing | 34 | height: content.height + Kube.Units.smallSpacing | ||
Context not available. | |||||
69 | text: root.name | 71 | text: root.name | ||
70 | color: Kube.Colors.backgroundColor | 72 | color: Kube.Colors.backgroundColor | ||
71 | } | 73 | } | ||
74 | Kube.IconButton { | ||||
75 | visible: root.type == "application/pgp-keys" | ||||
76 | iconName: Kube.Icons.key_import_inverted | ||||
77 | height: Kube.Units.gridUnit | ||||
78 | width: height | ||||
79 | onClicked: root.publicKeyImport() | ||||
80 | padding: 0 | ||||
81 | } | ||||
72 | Kube.IconButton { | 82 | Kube.IconButton { | ||
73 | id: actionButton | 83 | id: actionButton | ||
74 | height: Kube.Units.gridUnit | 84 | height: Kube.Units.gridUnit | ||
Context not available. |