summaryrefslogtreecommitdiffstats
path: root/components/package/contents/ui/Settings.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-03-10 11:57:08 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-03-10 11:57:08 +0100
commit9bfadc71a4fb694ae3946711d04acdfe009264c0 (patch)
tree883c944c166e8b31862ba2a898ab6aed1944b0aa /components/package/contents/ui/Settings.qml
parentd0617d0ad6926c250e29d1a40db93733fa911e5d (diff)
downloadkube-9bfadc71a4fb694ae3946711d04acdfe009264c0.tar.gz
kube-9bfadc71a4fb694ae3946711d04acdfe009264c0.zip
A factory to load account plugins.
Diffstat (limited to 'components/package/contents/ui/Settings.qml')
-rw-r--r--components/package/contents/ui/Settings.qml23
1 files changed, 20 insertions, 3 deletions
diff --git a/components/package/contents/ui/Settings.qml b/components/package/contents/ui/Settings.qml
index 6d653c7b..692ddd0a 100644
--- a/components/package/contents/ui/Settings.qml
+++ b/components/package/contents/ui/Settings.qml
@@ -19,8 +19,10 @@ import QtQuick 2.4
19import QtQuick.Controls 1.4 19import QtQuick.Controls 1.4
20import QtQuick.Layouts 1.1 20import QtQuick.Layouts 1.1
21 21
22import org.kde.plasma.core 2.0 as PlasmaCore
23
22import org.kube.framework.settings 1.0 as KubeSettings 24import org.kube.framework.settings 1.0 as KubeSettings
23import org.kde.kube.accounts.maildir 1.0 as Maildir 25import org.kube.framework.domain 1.0 as KubeFramework
24 26
25Rectangle { 27Rectangle {
26 id: root 28 id: root
@@ -63,8 +65,23 @@ Rectangle {
63 spacing: 5 65 spacing: 5
64 Repeater { 66 Repeater {
65 model: contextSettings.accounts 67 model: contextSettings.accounts
66 delegate: Maildir.AccountSettings { //This should be retrieved from the accounts plugin: KubeAccounts { identifier: modelData }.settingsUi 68 delegate: Rectangle {
67 accountId: modelData 69 KubeFramework.AccountFactory {
70 id: accountFactory
71 accountId: modelData
72 }
73 PlasmaCore.IconItem {
74 anchors {
75 verticalCenter: parent.verticalCenter
76 left: parent.left
77 // leftMargin: unit.size * 3
78 }
79 source: accountFactory.icon
80 }
81 Label {
82 text: accountFactory.name
83 }
84 Loader { source: accountFactory.uiPath }
68 } 85 }
69 } 86 }
70 } 87 }