summaryrefslogtreecommitdiffstats
path: root/applications
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2016-03-08 16:50:56 +0100
committerMichael Bohlender <michael.bohlender@kdemail.net>2016-03-08 16:50:56 +0100
commit7599906e9270498dd2674f51cd8b938bac0043a6 (patch)
tree6a63e4b04845e11dceb0b7130e451ce7c4441aa9 /applications
parentfd31aa9b05ea215e8071cf76fe21ec746204f3a3 (diff)
downloadkube-7599906e9270498dd2674f51cd8b938bac0043a6.tar.gz
kube-7599906e9270498dd2674f51cd8b938bac0043a6.zip
hide cc/bcc lineedit when not needed
Diffstat (limited to 'applications')
-rw-r--r--applications/kube-mail/package/contents/ui/Composer.qml48
1 files changed, 42 insertions, 6 deletions
diff --git a/applications/kube-mail/package/contents/ui/Composer.qml b/applications/kube-mail/package/contents/ui/Composer.qml
index 5502b7f9..b049f33b 100644
--- a/applications/kube-mail/package/contents/ui/Composer.qml
+++ b/applications/kube-mail/package/contents/ui/Composer.qml
@@ -18,9 +18,11 @@
18import QtQuick 2.4 18import QtQuick 2.4
19import QtQuick.Controls 1.4 19import QtQuick.Controls 1.4
20import QtQuick.Layouts 1.1 20import QtQuick.Layouts 1.1
21import org.kde.plasma.components 2.0 as PlasmaComponents
21 22
22import org.kde.kube.mail 1.0 as Mail 23import org.kde.kube.mail 1.0 as Mail
23 24
25
24Item { 26Item {
25 id: root 27 id: root
26 property variant originalMessage 28 property variant originalMessage
@@ -79,20 +81,48 @@ Item {
79 text: "To" 81 text: "To"
80 } 82 }
81 83
82 TextField { 84 RowLayout {
83 id: to
84
85 Layout.fillWidth: true 85 Layout.fillWidth: true
86 86
87 text: composer.to 87 TextField {
88 id: to
88 89
89 onTextChanged: { 90 Layout.fillWidth: true
90 composer.to = text; 91
92 text: composer.to
93
94 onTextChanged: {
95 composer.to = text;
96 }
97 }
98
99 PlasmaComponents.Button {
100 id: ccButton
101
102 text: "Cc"
103
104 onClicked: {
105 cc.visible = true
106 ccButton.visible = false
107 }
108 }
109
110 PlasmaComponents.Button {
111 id: bccButton
112
113 text: "Bcc"
114
115 onClicked: {
116 bcc.visible = true
117 bccButton.visible = false
118 }
91 } 119 }
92 } 120 }
93 121
94 Label { 122 Label {
95 text: "Cc" 123 text: "Cc"
124
125 visible: cc.visible
96 } 126 }
97 127
98 TextField { 128 TextField {
@@ -100,6 +130,8 @@ Item {
100 130
101 Layout.fillWidth: true 131 Layout.fillWidth: true
102 132
133 visible: false
134
103 text: composer.cc 135 text: composer.cc
104 136
105 onTextChanged: { 137 onTextChanged: {
@@ -109,6 +141,8 @@ Item {
109 141
110 Label { 142 Label {
111 text: "Bcc" 143 text: "Bcc"
144
145 visible: bcc.visible
112 } 146 }
113 147
114 TextField { 148 TextField {
@@ -116,6 +150,8 @@ Item {
116 150
117 Layout.fillWidth: true 151 Layout.fillWidth: true
118 152
153 visible : false
154
119 text: composer.bcc 155 text: composer.bcc
120 156
121 onTextChanged: { 157 onTextChanged: {