summaryrefslogtreecommitdiffstats
path: root/applications/kube-mail/package/contents/ui/Composer.qml
diff options
context:
space:
mode:
Diffstat (limited to 'applications/kube-mail/package/contents/ui/Composer.qml')
-rw-r--r--applications/kube-mail/package/contents/ui/Composer.qml42
1 files changed, 39 insertions, 3 deletions
diff --git a/applications/kube-mail/package/contents/ui/Composer.qml b/applications/kube-mail/package/contents/ui/Composer.qml
index 66305254..52cb2f6c 100644
--- a/applications/kube-mail/package/contents/ui/Composer.qml
+++ b/applications/kube-mail/package/contents/ui/Composer.qml
@@ -20,19 +20,25 @@ import QtQuick 2.4
20import QtQuick.Controls 1.4 20import QtQuick.Controls 1.4
21import QtQuick.Layouts 1.1 21import QtQuick.Layouts 1.1
22 22
23import org.kde.kube.mail 1.0 as Mail
24
23Item { 25Item {
24 id: root 26 id: root
25 27
26 function send() { 28 function send() {
27 29 composer.send()
28 } 30 }
29 31
30 function saveAsDraft() { 32 function saveAsDraft() {
31 33 composer.saveAsDraft()
32 } 34 }
33 35
34 function clear() { 36 function clear() {
37 composer.clear();
38 }
35 39
40 Mail.Composer {
41 id: composer
36 } 42 }
37 43
38 ColumnLayout { 44 ColumnLayout {
@@ -61,6 +67,12 @@ Item {
61 id: to 67 id: to
62 68
63 Layout.fillWidth: true 69 Layout.fillWidth: true
70
71 text: composer.to
72
73 onTextChanged: {
74 composer.to = text;
75 }
64 } 76 }
65 77
66 Label { 78 Label {
@@ -71,6 +83,12 @@ Item {
71 id: cc 83 id: cc
72 84
73 Layout.fillWidth: true 85 Layout.fillWidth: true
86
87 text: composer.cc
88
89 onTextChanged: {
90 composer.cc = text;
91 }
74 } 92 }
75 93
76 Label { 94 Label {
@@ -81,6 +99,12 @@ Item {
81 id: bcc 99 id: bcc
82 100
83 Layout.fillWidth: true 101 Layout.fillWidth: true
102
103 text: composer.bcc
104
105 onTextChanged: {
106 composer.bcc = text;
107 }
84 } 108 }
85 } 109 }
86 110
@@ -89,12 +113,24 @@ Item {
89 113
90 Layout.fillWidth: true 114 Layout.fillWidth: true
91 115
92 placeholderText: "Subject" 116 placeholderText: "Enter Subject"
117
118 text: composer.subject
119
120 onTextChanged: {
121 composer.subject = text;
122 }
93 } 123 }
94 124
95 TextArea { 125 TextArea {
96 id: content 126 id: content
97 127
128 text: composer.body
129
130 onTextChanged: {
131 composer.body = text;
132 }
133
98 Layout.fillWidth: true 134 Layout.fillWidth: true
99 Layout.fillHeight: true 135 Layout.fillHeight: true
100 136