From 7726fc6e03c09a5a1cb2dad62bd9ed6438e8bd8b Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Thu, 5 Jan 2017 19:44:27 +0100 Subject: kolabnow controller and create ui --- components/accounts/CreateKolabNow.qml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'components/accounts') diff --git a/components/accounts/CreateKolabNow.qml b/components/accounts/CreateKolabNow.qml index e86f4ec9..c362bef6 100644 --- a/components/accounts/CreateKolabNow.qml +++ b/components/accounts/CreateKolabNow.qml @@ -22,8 +22,14 @@ import QtQuick.Controls 1.4 as Controls import QtQuick.Controls 2.0 as Controls2 import org.kde.kirigami 1.0 as Kirigami +import org.kube.framework.accounts 1.0 as KubeAccounts + Item { + KubeAccounts.KolabNowController { + id: account + } + Controls.ToolButton { iconName: "go-previous" @@ -97,6 +103,12 @@ Item { Controls.TextField { Layout.fillWidth: true + text: account.emailAddress + + onTextChanged: { + account.emailAddress = text + } + placeholderText: "Your email address" } @@ -113,6 +125,13 @@ Item { Layout.fillWidth: true placeholderText: "Password of your email account" + + text: account.password + + onTextChanged: { + account.password = text + } + echoMode: TextInput.Password } @@ -157,6 +176,7 @@ Item { text: "Save" onClicked: { + account.createAction.execute() popup.close() } } -- cgit v1.2.3