diff options
Diffstat (limited to 'components/package')
-rw-r--r-- | components/package/contents/ui/Settings.qml | 23 |
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 | |||
19 | import QtQuick.Controls 1.4 | 19 | import QtQuick.Controls 1.4 |
20 | import QtQuick.Layouts 1.1 | 20 | import QtQuick.Layouts 1.1 |
21 | 21 | ||
22 | import org.kde.plasma.core 2.0 as PlasmaCore | ||
23 | |||
22 | import org.kube.framework.settings 1.0 as KubeSettings | 24 | import org.kube.framework.settings 1.0 as KubeSettings |
23 | import org.kde.kube.accounts.maildir 1.0 as Maildir | 25 | import org.kube.framework.domain 1.0 as KubeFramework |
24 | 26 | ||
25 | Rectangle { | 27 | Rectangle { |
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 | } |