From f6e8b7ff01c7de0a7b7613bf46b51adf3a8a59a1 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Thu, 1 Mar 2018 11:13:22 +0100 Subject: Add key import --- framework/qml/AttachmentDelegate.qml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'framework/qml/AttachmentDelegate.qml') diff --git a/framework/qml/AttachmentDelegate.qml b/framework/qml/AttachmentDelegate.qml index 3c308e65..4469cbdd 100644 --- a/framework/qml/AttachmentDelegate.qml +++ b/framework/qml/AttachmentDelegate.qml @@ -23,10 +23,12 @@ Item { id: root property string name + property string type property string icon property alias actionIcon: actionButton.iconName signal clicked; signal execute; + signal publicKeyImport; width: content.width + Kube.Units.smallSpacing * 1.5 height: content.height + Kube.Units.smallSpacing @@ -69,6 +71,14 @@ Item { text: root.name color: Kube.Colors.backgroundColor } + Kube.IconButton { + visible: root.type == "application/pgp-keys" + iconName: Kube.Icons.key_import_inverted + height: Kube.Units.gridUnit + width: height + onClicked: root.publicKeyImport() + padding: 0 + } Kube.IconButton { id: actionButton height: Kube.Units.gridUnit -- cgit v1.2.3