summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-09-08 12:00:53 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-09-08 12:00:53 +0200
commitaa2aae14922a45d1aa1d1159a26765a187d095c1 (patch)
treed58c3b81e05976938f73fab14233314f4bac7795
parent6c7e79f7270500d00c526692c32cfc106a2feb07 (diff)
downloadkube-aa2aae14922a45d1aa1d1159a26765a187d095c1.tar.gz
kube-aa2aae14922a45d1aa1d1159a26765a187d095c1.zip
Use RequiredTextField
-rw-r--r--accounts/imap/package/contents/ui/ImapAccountSettings.qml24
1 files changed, 5 insertions, 19 deletions
diff --git a/accounts/imap/package/contents/ui/ImapAccountSettings.qml b/accounts/imap/package/contents/ui/ImapAccountSettings.qml
index a0469719..f2a68d9f 100644
--- a/accounts/imap/package/contents/ui/ImapAccountSettings.qml
+++ b/accounts/imap/package/contents/ui/ImapAccountSettings.qml
@@ -61,7 +61,7 @@ Item {
61 text: qsTr("Title of Account") 61 text: qsTr("Title of Account")
62 Layout.alignment: Qt.AlignRight 62 Layout.alignment: Qt.AlignRight
63 } 63 }
64 Kube.TextField { 64 Kube.RequiredTextField {
65 Layout.fillWidth: true 65 Layout.fillWidth: true
66 placeholderText: qsTr("E.g. \"Work\", \"Home\" that will be displayed in Kube as name") 66 placeholderText: qsTr("E.g. \"Work\", \"Home\" that will be displayed in Kube as name")
67 text: imapSettings.accountName 67 text: imapSettings.accountName
@@ -74,7 +74,7 @@ Item {
74 text: qsTr("Name") 74 text: qsTr("Name")
75 Layout.alignment: Qt.AlignRight 75 Layout.alignment: Qt.AlignRight
76 } 76 }
77 Kube.TextField { 77 Kube.RequiredTextField {
78 Layout.fillWidth: true 78 Layout.fillWidth: true
79 placeholderText: qsTr("Your name") 79 placeholderText: qsTr("Your name")
80 text: imapSettings.userName 80 text: imapSettings.userName
@@ -87,7 +87,7 @@ Item {
87 text: qsTr("Email address") 87 text: qsTr("Email address")
88 Layout.alignment: Qt.AlignRight 88 Layout.alignment: Qt.AlignRight
89 } 89 }
90 Kube.TextField { 90 Kube.RequiredTextField {
91 Layout.fillWidth: true 91 Layout.fillWidth: true
92 92
93 text: imapSettings.emailAddress 93 text: imapSettings.emailAddress
@@ -120,7 +120,7 @@ Item {
120 text: qsTr("IMAP server address") 120 text: qsTr("IMAP server address")
121 Layout.alignment: Qt.AlignRight 121 Layout.alignment: Qt.AlignRight
122 } 122 }
123 Kube.TextField { 123 Kube.RequiredTextField {
124 id: imapServer 124 id: imapServer
125 125
126 Layout.fillWidth: true 126 Layout.fillWidth: true
@@ -131,20 +131,13 @@ Item {
131 imapSettings.imapServer = text 131 imapSettings.imapServer = text
132 } 132 }
133 validator: imapSettings.imapServerValidator 133 validator: imapSettings.imapServerValidator
134
135 Rectangle {
136 anchors.fill: parent
137 opacity: 0.2
138 color: "yellow"
139 visible: imapServer.acceptableInput
140 }
141 } 134 }
142 135
143 Kube.Label { 136 Kube.Label {
144 text: qsTr("Smtp address") 137 text: qsTr("Smtp address")
145 Layout.alignment: Qt.AlignRight 138 Layout.alignment: Qt.AlignRight
146 } 139 }
147 Kube.TextField { 140 Kube.RequiredTextField {
148 id: smtpServer 141 id: smtpServer
149 Layout.fillWidth: true 142 Layout.fillWidth: true
150 143
@@ -154,13 +147,6 @@ Item {
154 imapSettings.smtpServer = text 147 imapSettings.smtpServer = text
155 } 148 }
156 validator: imapSettings.smtpServerValidator 149 validator: imapSettings.smtpServerValidator
157
158 Rectangle {
159 anchors.fill: parent
160 opacity: 0.2
161 color: "yellow"
162 visible: smtpServer.acceptableInput
163 }
164 } 150 }
165 } 151 }
166 } 152 }