diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-02-22 14:19:43 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-02-22 15:57:44 +0100 |
commit | cb2b1a35e14031f15155243aee12fc862cb65ebf (patch) | |
tree | cc6a28ef675953d41b9eeb98b21325d9a7b030b4 /components/package/contents/ui/EditAccountDialog.qml | |
parent | b08e78c52a0b6a3c725ce58e0c3fb0bfcdf2bc55 (diff) | |
download | kube-cb2b1a35e14031f15155243aee12fc862cb65ebf.tar.gz kube-cb2b1a35e14031f15155243aee12fc862cb65ebf.zip |
Fixed kolabnow account setup page.
The account plugin supplies the configuration UI, the application
supplies the scaffolding. That way we ensure the application doens't
contain any account specific code and account configurations are free to
offer specialized UI's that work best for them.
We're not currently using a standardized controller, but if we did those
controllers would have to live with the plugin, not the framework or the
components.
Diffstat (limited to 'components/package/contents/ui/EditAccountDialog.qml')
-rw-r--r-- | components/package/contents/ui/EditAccountDialog.qml | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/components/package/contents/ui/EditAccountDialog.qml b/components/package/contents/ui/EditAccountDialog.qml index 19349f38..a7461640 100644 --- a/components/package/contents/ui/EditAccountDialog.qml +++ b/components/package/contents/ui/EditAccountDialog.qml | |||
@@ -21,28 +21,18 @@ import QtQuick.Layouts 1.1 | |||
21 | 21 | ||
22 | import org.kde.kirigami 1.0 as Kirigami | 22 | import org.kde.kirigami 1.0 as Kirigami |
23 | 23 | ||
24 | import org.kube.framework.settings 1.0 as KubeSettings | ||
25 | import org.kube.framework.domain 1.0 as KubeFramework | ||
26 | import org.kube.components 1.0 as KubeComponents | 24 | import org.kube.components 1.0 as KubeComponents |
27 | 25 | ||
28 | KubeComponents.OverlayDialog { | 26 | KubeComponents.OverlayDialog { |
29 | id: root | 27 | id: dialog |
30 | 28 | ||
31 | property variant uiSource | ||
32 | property variant accountId | 29 | property variant accountId |
30 | EditAccount { | ||
31 | accountId: dialog.accountId | ||
33 | 32 | ||
34 | Item { | ||
35 | id: dialog | ||
36 | anchors.centerIn: parent | 33 | anchors.centerIn: parent |
37 | 34 | ||
38 | height: root.height * 0.8 | 35 | height: dialog.height * 0.8 |
39 | width: root.width * 0.8 | 36 | width: dialog.width * 0.8 |
40 | |||
41 | Loader { | ||
42 | anchors.fill: parent | ||
43 | |||
44 | source: root.uiSource | ||
45 | onLoaded: item.accountId = root.accountId | ||
46 | } | ||
47 | } | 37 | } |
48 | } | 38 | } |