From 53bcc57dcfa0c053a79f4240ffb0f20f06fd433b Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 2 Jul 2018 22:42:29 +0200 Subject: Tooltips --- framework/qml/AttachmentDelegate.qml | 2 ++ framework/qml/MailViewer.qml | 1 + 2 files changed, 3 insertions(+) diff --git a/framework/qml/AttachmentDelegate.qml b/framework/qml/AttachmentDelegate.qml index 4469cbdd..b98e8ba9 100644 --- a/framework/qml/AttachmentDelegate.qml +++ b/framework/qml/AttachmentDelegate.qml @@ -26,6 +26,7 @@ Item { property string type property string icon property alias actionIcon: actionButton.iconName + property alias actionTooltip: actionButton.tooltip signal clicked; signal execute; signal publicKeyImport; @@ -78,6 +79,7 @@ Item { width: height onClicked: root.publicKeyImport() padding: 0 + tooltip: qsTr("Import key") } Kube.IconButton { id: actionButton diff --git a/framework/qml/MailViewer.qml b/framework/qml/MailViewer.qml index a43c99e9..cb40a8f5 100644 --- a/framework/qml/MailViewer.qml +++ b/framework/qml/MailViewer.qml @@ -290,6 +290,7 @@ Rectangle { clip: true actionIcon: Kube.Icons.save_inverted + actionTooltip: qsTr("Save attachment") onExecute: messageParser.attachments.saveAttachmentToDisk(messageParser.attachments.index(index, 0)) onClicked: messageParser.attachments.openAttachment(messageParser.attachments.index(index, 0)) onPublicKeyImport: messageParser.attachments.importPublicKey(messageParser.attachments.index(index, 0)) -- cgit v1.2.3