diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-08-03 21:04:29 -0600 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-08-03 21:04:29 -0600 |
commit | 1f469a85e48c19b2fcb4f119bed8b2d56cff8629 (patch) | |
tree | db574167a23d9707af0044d1b1d8d77ccc7d7002 /framework/qml/MailViewer.qml | |
parent | f70fb14b36c2d6af498f31c36b5fd5d8beb827f4 (diff) | |
download | kube-1f469a85e48c19b2fcb4f119bed8b2d56cff8629.tar.gz kube-1f469a85e48c19b2fcb4f119bed8b2d56cff8629.zip |
Send mail to option
This is mostly to demonstrate how this could work with additional menu
entries.
Diffstat (limited to 'framework/qml/MailViewer.qml')
-rw-r--r-- | framework/qml/MailViewer.qml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/framework/qml/MailViewer.qml b/framework/qml/MailViewer.qml index ef78371e..d16fde7c 100644 --- a/framework/qml/MailViewer.qml +++ b/framework/qml/MailViewer.qml | |||
@@ -140,11 +140,15 @@ Rectangle { | |||
140 | Kube.SelectableLabel { | 140 | Kube.SelectableLabel { |
141 | width: parent.width - senderName.width - date_label.width - Kube.Units.largeSpacing | 141 | width: parent.width - senderName.width - date_label.width - Kube.Units.largeSpacing |
142 | 142 | ||
143 | |||
144 | text: root.sender | 143 | text: root.sender |
145 | elide: Text.ElideRight | 144 | elide: Text.ElideRight |
146 | opacity: 0.75 | 145 | opacity: 0.75 |
147 | clip: true | 146 | clip: true |
147 | |||
148 | Kube.TextButton { | ||
149 | text: qsTr("Send mail to") | ||
150 | onClicked: Kube.Fabric.postMessage(Kube.Messages.compose, {"recipients": [root.sender]}) | ||
151 | } | ||
148 | } | 152 | } |
149 | } | 153 | } |
150 | 154 | ||