From 2ea57b9a9c5db3fa340cb62d40a9732af31143e0 Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Thu, 5 Jan 2017 15:28:43 +0100 Subject: adjust accountswitcher to accountsplugin, remove old newaccountdialog, enable accountwizard --- components/package/contents/ui/AccountSwitcher.qml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'components/package/contents/ui/AccountSwitcher.qml') diff --git a/components/package/contents/ui/AccountSwitcher.qml b/components/package/contents/ui/AccountSwitcher.qml index 6c899c50..41b3478c 100644 --- a/components/package/contents/ui/AccountSwitcher.qml +++ b/components/package/contents/ui/AccountSwitcher.qml @@ -24,6 +24,7 @@ import QtQml 2.2 as QtQml import org.kde.kirigami 1.0 as Kirigami import org.kube.framework.domain 1.0 as KubeFramework +import org.kube.framework.accounts 1.0 as KubeAccounts import org.kube.components 1.0 as KubeComponents Controls2.Button { @@ -81,17 +82,9 @@ Controls2.Button { text: "Create new Account" onClicked: { - newAccountComponent.createObject(app) + accountWizard.open() popup.close() } - - Component { - id: newAccountComponent - KubeComponents.NewAccountDialog { - id: settings - anchors.fill: parent - } - } } Controls2.Button { @@ -123,7 +116,7 @@ Controls2.Button { clip: true - model: KubeFramework.AccountsModel { } + model: KubeAccounts.AccountsModel { } delegate: Kirigami.AbstractListItem { id: accountDelegate @@ -158,7 +151,7 @@ Controls2.Button { Layout.fillHeight: true - KubeFramework.AccountFactory { + KubeAccounts.AccountFactory { id: accountFactory accountId: model.accountId } -- cgit v1.2.3