summaryrefslogtreecommitdiffstats
path: root/accounts
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2017-04-19 14:25:43 +0200
committerMichael Bohlender <michael.bohlender@kdemail.net>2017-04-19 14:25:43 +0200
commit926da003aa8dd5382fe714d020b1ce55ae550e8e (patch)
tree234109a4b505654559c927ff933b665b28a2239a /accounts
parent350b15206c5db5d080929fda0c7451346e1c40fb (diff)
downloadkube-926da003aa8dd5382fe714d020b1ce55ae550e8e.tar.gz
kube-926da003aa8dd5382fe714d020b1ce55ae550e8e.zip
use kube controls in account
Diffstat (limited to 'accounts')
-rw-r--r--accounts/gmail/package/contents/ui/GmailSettings.qml24
-rw-r--r--accounts/imap/package/contents/ui/ImapAccountSettings.qml32
-rw-r--r--accounts/kolabnow/package/contents/ui/KolabnowAccountSettings.qml24
-rw-r--r--accounts/maildir/package/contents/ui/MaildirAccountSettings.qml13
4 files changed, 42 insertions, 51 deletions
diff --git a/accounts/gmail/package/contents/ui/GmailSettings.qml b/accounts/gmail/package/contents/ui/GmailSettings.qml
index ea6ac9e3..39e1b307 100644
--- a/accounts/gmail/package/contents/ui/GmailSettings.qml
+++ b/accounts/gmail/package/contents/ui/GmailSettings.qml
@@ -20,9 +20,7 @@
20import QtQuick 2.4 20import QtQuick 2.4
21import QtQuick.Controls 1.4 as Controls 21import QtQuick.Controls 1.4 as Controls
22import QtQuick.Layouts 1.1 22import QtQuick.Layouts 1.1
23 23import org.kube.framework 1.0 as Kube
24import org.kde.kirigami 1.0 as Kirigami
25
26import org.kube.accounts.gmail 1.0 as GmailAccount 24import org.kube.accounts.gmail 1.0 as GmailAccount
27 25
28Item { 26Item {
@@ -55,14 +53,14 @@ Item {
55 fill: parent 53 fill: parent
56 } 54 }
57 columns: 2 55 columns: 2
58 columnSpacing: Kirigami.Units.largeSpacing 56 columnSpacing: Kube.Units.largeSpacing
59 rowSpacing: Kirigami.Units.largeSpacing 57 rowSpacing: Kube.Units.largeSpacing
60 58
61 Controls.Label { 59 Kube.Label {
62 text: "Title of Account" 60 text: "Title of Account"
63 Layout.alignment: Qt.AlignRight 61 Layout.alignment: Qt.AlignRight
64 } 62 }
65 Controls.TextField { 63 Kube.TextField {
66 Layout.fillWidth: true 64 Layout.fillWidth: true
67 placeholderText: "E.g. \"Work\", \"Home\" that will be displayed in Kube as name" 65 placeholderText: "E.g. \"Work\", \"Home\" that will be displayed in Kube as name"
68 text: gmailSettings.accountName 66 text: gmailSettings.accountName
@@ -71,11 +69,11 @@ Item {
71 } 69 }
72 } 70 }
73 71
74 Controls.Label { 72 Kube.Label {
75 text: "Name" 73 text: "Name"
76 Layout.alignment: Qt.AlignRight 74 Layout.alignment: Qt.AlignRight
77 } 75 }
78 Controls.TextField { 76 Kube.TextField {
79 Layout.fillWidth: true 77 Layout.fillWidth: true
80 placeholderText: "Your name" 78 placeholderText: "Your name"
81 text: gmailSettings.userName 79 text: gmailSettings.userName
@@ -84,11 +82,11 @@ Item {
84 } 82 }
85 } 83 }
86 84
87 Controls.Label { 85 Kube.Label {
88 text: "Email address" 86 text: "Email address"
89 Layout.alignment: Qt.AlignRight 87 Layout.alignment: Qt.AlignRight
90 } 88 }
91 Controls.TextField { 89 Kube.TextField {
92 Layout.fillWidth: true 90 Layout.fillWidth: true
93 91
94 text: gmailSettings.emailAddress 92 text: gmailSettings.emailAddress
@@ -98,14 +96,14 @@ Item {
98 placeholderText: "Your email address" 96 placeholderText: "Your email address"
99 } 97 }
100 98
101 Controls.Label { 99 Kube.Label {
102 text: "Password" 100 text: "Password"
103 Layout.alignment: Qt.AlignRight 101 Layout.alignment: Qt.AlignRight
104 } 102 }
105 RowLayout { 103 RowLayout {
106 Layout.fillWidth: true 104 Layout.fillWidth: true
107 105
108 Controls.TextField { 106 Kube.TextField {
109 id: pwField 107 id: pwField
110 Layout.fillWidth: true 108 Layout.fillWidth: true
111 109
diff --git a/accounts/imap/package/contents/ui/ImapAccountSettings.qml b/accounts/imap/package/contents/ui/ImapAccountSettings.qml
index b448ac3c..a69e5af6 100644
--- a/accounts/imap/package/contents/ui/ImapAccountSettings.qml
+++ b/accounts/imap/package/contents/ui/ImapAccountSettings.qml
@@ -20,9 +20,7 @@
20import QtQuick 2.4 20import QtQuick 2.4
21import QtQuick.Controls 1.4 as Controls 21import QtQuick.Controls 1.4 as Controls
22import QtQuick.Layouts 1.1 22import QtQuick.Layouts 1.1
23 23import org.kube.framework 1.0 as Kube
24import org.kde.kirigami 1.0 as Kirigami
25
26import org.kube.accounts.imap 1.0 as ImapAccount 24import org.kube.accounts.imap 1.0 as ImapAccount
27 25
28Item { 26Item {
@@ -55,14 +53,14 @@ Item {
55 fill: parent 53 fill: parent
56 } 54 }
57 columns: 2 55 columns: 2
58 columnSpacing: Kirigami.Units.largeSpacing 56 columnSpacing: Kube.Units.largeSpacing
59 rowSpacing: Kirigami.Units.largeSpacing 57 rowSpacing: Kube.Units.largeSpacing
60 58
61 Controls.Label { 59 Kube.Label {
62 text: "Title of Account" 60 text: "Title of Account"
63 Layout.alignment: Qt.AlignRight 61 Layout.alignment: Qt.AlignRight
64 } 62 }
65 Controls.TextField { 63 Kube.TextField {
66 Layout.fillWidth: true 64 Layout.fillWidth: true
67 placeholderText: "E.g. \"Work\", \"Home\" that will be displayed in Kube as name" 65 placeholderText: "E.g. \"Work\", \"Home\" that will be displayed in Kube as name"
68 text: imapSettings.accountName 66 text: imapSettings.accountName
@@ -71,11 +69,11 @@ Item {
71 } 69 }
72 } 70 }
73 71
74 Controls.Label { 72 Kube.Label {
75 text: "Name" 73 text: "Name"
76 Layout.alignment: Qt.AlignRight 74 Layout.alignment: Qt.AlignRight
77 } 75 }
78 Controls.TextField { 76 Kube.TextField {
79 Layout.fillWidth: true 77 Layout.fillWidth: true
80 placeholderText: "Your name" 78 placeholderText: "Your name"
81 text: imapSettings.userName 79 text: imapSettings.userName
@@ -84,11 +82,11 @@ Item {
84 } 82 }
85 } 83 }
86 84
87 Controls.Label { 85 Kube.Label {
88 text: "Email address" 86 text: "Email address"
89 Layout.alignment: Qt.AlignRight 87 Layout.alignment: Qt.AlignRight
90 } 88 }
91 Controls.TextField { 89 Kube.TextField {
92 Layout.fillWidth: true 90 Layout.fillWidth: true
93 91
94 text: imapSettings.emailAddress 92 text: imapSettings.emailAddress
@@ -98,14 +96,14 @@ Item {
98 placeholderText: "Your email address" 96 placeholderText: "Your email address"
99 } 97 }
100 98
101 Controls.Label { 99 Kube.Label {
102 text: "Password" 100 text: "Password"
103 Layout.alignment: Qt.AlignRight 101 Layout.alignment: Qt.AlignRight
104 } 102 }
105 RowLayout { 103 RowLayout {
106 Layout.fillWidth: true 104 Layout.fillWidth: true
107 105
108 Controls.TextField { 106 Kube.TextField {
109 id: pwField 107 id: pwField
110 Layout.fillWidth: true 108 Layout.fillWidth: true
111 109
@@ -131,11 +129,11 @@ Item {
131 } 129 }
132 } 130 }
133 131
134 Controls.Label { 132 Kube.Label {
135 text: "IMAP server address" 133 text: "IMAP server address"
136 Layout.alignment: Qt.AlignRight 134 Layout.alignment: Qt.AlignRight
137 } 135 }
138 Controls.TextField { 136 Kube.TextField {
139 id: imapServer 137 id: imapServer
140 138
141 Layout.fillWidth: true 139 Layout.fillWidth: true
@@ -155,11 +153,11 @@ Item {
155 } 153 }
156 } 154 }
157 155
158 Controls.Label { 156 Kube.Label {
159 text: "Smtp address" 157 text: "Smtp address"
160 Layout.alignment: Qt.AlignRight 158 Layout.alignment: Qt.AlignRight
161 } 159 }
162 Controls.TextField { 160 Kube.TextField {
163 id: smtpServer 161 id: smtpServer
164 Layout.fillWidth: true 162 Layout.fillWidth: true
165 163
diff --git a/accounts/kolabnow/package/contents/ui/KolabnowAccountSettings.qml b/accounts/kolabnow/package/contents/ui/KolabnowAccountSettings.qml
index 2cb4086f..f07fdb31 100644
--- a/accounts/kolabnow/package/contents/ui/KolabnowAccountSettings.qml
+++ b/accounts/kolabnow/package/contents/ui/KolabnowAccountSettings.qml
@@ -20,9 +20,7 @@
20import QtQuick 2.4 20import QtQuick 2.4
21import QtQuick.Controls 1.4 as Controls 21import QtQuick.Controls 1.4 as Controls
22import QtQuick.Layouts 1.1 22import QtQuick.Layouts 1.1
23 23import org.kube.framework 1.0 as Kube
24import org.kde.kirigami 1.0 as Kirigami
25
26import org.kube.accounts.kolabnow 1.0 as KolabnowAccount 24import org.kube.accounts.kolabnow 1.0 as KolabnowAccount
27 25
28Item { 26Item {
@@ -55,14 +53,14 @@ Item {
55 fill: parent 53 fill: parent
56 } 54 }
57 columns: 2 55 columns: 2
58 columnSpacing: Kirigami.Units.largeSpacing 56 columnSpacing: Kube.Units.largeSpacing
59 rowSpacing: Kirigami.Units.largeSpacing 57 rowSpacing: Kube.Units.largeSpacing
60 58
61 Controls.Label { 59 Kube.Label {
62 text: "Title of Account" 60 text: "Title of Account"
63 Layout.alignment: Qt.AlignRight 61 Layout.alignment: Qt.AlignRight
64 } 62 }
65 Controls.TextField { 63 Kube.TextField {
66 Layout.fillWidth: true 64 Layout.fillWidth: true
67 placeholderText: "E.g. \"Work\", \"Home\" that will be displayed in Kube as name" 65 placeholderText: "E.g. \"Work\", \"Home\" that will be displayed in Kube as name"
68 text: kolabnowSettings.accountName 66 text: kolabnowSettings.accountName
@@ -71,11 +69,11 @@ Item {
71 } 69 }
72 } 70 }
73 71
74 Controls.Label { 72 Kube.Label {
75 text: "Name" 73 text: "Name"
76 Layout.alignment: Qt.AlignRight 74 Layout.alignment: Qt.AlignRight
77 } 75 }
78 Controls.TextField { 76 Kube.TextField {
79 Layout.fillWidth: true 77 Layout.fillWidth: true
80 placeholderText: "Your name" 78 placeholderText: "Your name"
81 text: kolabnowSettings.userName 79 text: kolabnowSettings.userName
@@ -84,11 +82,11 @@ Item {
84 } 82 }
85 } 83 }
86 84
87 Controls.Label { 85 Kube.Label {
88 text: "Email address" 86 text: "Email address"
89 Layout.alignment: Qt.AlignRight 87 Layout.alignment: Qt.AlignRight
90 } 88 }
91 Controls.TextField { 89 Kube.TextField {
92 Layout.fillWidth: true 90 Layout.fillWidth: true
93 91
94 text: kolabnowSettings.emailAddress 92 text: kolabnowSettings.emailAddress
@@ -98,14 +96,14 @@ Item {
98 placeholderText: "Your email address" 96 placeholderText: "Your email address"
99 } 97 }
100 98
101 Controls.Label { 99 Kube.Label {
102 text: "Password" 100 text: "Password"
103 Layout.alignment: Qt.AlignRight 101 Layout.alignment: Qt.AlignRight
104 } 102 }
105 RowLayout { 103 RowLayout {
106 Layout.fillWidth: true 104 Layout.fillWidth: true
107 105
108 Controls.TextField { 106 Kube.TextField {
109 id: pwField 107 id: pwField
110 Layout.fillWidth: true 108 Layout.fillWidth: true
111 109
diff --git a/accounts/maildir/package/contents/ui/MaildirAccountSettings.qml b/accounts/maildir/package/contents/ui/MaildirAccountSettings.qml
index f191c82c..78244b41 100644
--- a/accounts/maildir/package/contents/ui/MaildirAccountSettings.qml
+++ b/accounts/maildir/package/contents/ui/MaildirAccountSettings.qml
@@ -19,12 +19,9 @@
19 19
20import QtQuick 2.4 20import QtQuick 2.4
21import QtQuick.Controls 1.4 as Controls 21import QtQuick.Controls 1.4 as Controls
22import QtQuick.Controls 2.0 as Controls2
23import QtQuick.Layouts 1.1 22import QtQuick.Layouts 1.1
24import QtQuick.Dialogs 1.0 as Dialogs 23import QtQuick.Dialogs 1.0 as Dialogs
25 24import org.kube.framework 1.0 as Kube
26import org.kde.kirigami 1.0 as Kirigami
27
28import org.kube.accounts.maildir 1.0 as MaildirAccount 25import org.kube.accounts.maildir 1.0 as MaildirAccount
29 26
30Item { 27Item {
@@ -59,11 +56,11 @@ Item {
59 columnSpacing: Kube.Units.largeSpacing 56 columnSpacing: Kube.Units.largeSpacing
60 rowSpacing: Kube.Units.largeSpacing 57 rowSpacing: Kube.Units.largeSpacing
61 58
62 Controls.Label { 59 Kube.Label {
63 text: "Title of Account" 60 text: "Title of Account"
64 Layout.alignment: Qt.AlignRight 61 Layout.alignment: Qt.AlignRight
65 } 62 }
66 Controls.TextField { 63 Kube.TextField {
67 Layout.fillWidth: true 64 Layout.fillWidth: true
68 placeholderText: "E.g. \"Work\", \"Home\" that will be displayed in Kube as name" 65 placeholderText: "E.g. \"Work\", \"Home\" that will be displayed in Kube as name"
69 text: maildirSettings.accountName 66 text: maildirSettings.accountName
@@ -72,14 +69,14 @@ Item {
72 } 69 }
73 } 70 }
74 71
75 Controls2.Label { 72 Kube.Label {
76 text: "Path" 73 text: "Path"
77 Layout.alignment: Qt.AlignRight 74 Layout.alignment: Qt.AlignRight
78 } 75 }
79 RowLayout { 76 RowLayout {
80 Layout.fillWidth: true 77 Layout.fillWidth: true
81 78
82 Controls.TextField { 79 Kube.TextField {
83 id: path 80 id: path
84 Layout.fillWidth: true 81 Layout.fillWidth: true
85 enabled: false 82 enabled: false