diff options
Diffstat (limited to 'components/accounts/contents/ui/AccountWizard.qml')
-rw-r--r-- | components/accounts/contents/ui/AccountWizard.qml | 76 |
1 files changed, 11 insertions, 65 deletions
diff --git a/components/accounts/contents/ui/AccountWizard.qml b/components/accounts/contents/ui/AccountWizard.qml index 8cc90acb..ffc3f5da 100644 --- a/components/accounts/contents/ui/AccountWizard.qml +++ b/components/accounts/contents/ui/AccountWizard.qml | |||
@@ -51,47 +51,15 @@ Controls2.Popup { | |||
51 | 51 | ||
52 | spacing: Kirigami.Units.largeSpacing | 52 | spacing: Kirigami.Units.largeSpacing |
53 | 53 | ||
54 | Controls2.Button { | 54 | Repeater { |
55 | 55 | //TODO replace by model of available accounts | |
56 | Layout.fillWidth: true | 56 | model: ["kolabnow", "imap", "maildir"] |
57 | 57 | delegate: Controls2.Button { | |
58 | text: "kolabnow account" | 58 | Layout.fillWidth: true |
59 | 59 | text: modelData +" account" | |
60 | onClicked: { | 60 | onClicked: { |
61 | stack.push(kolabnow) | 61 | stack.push(wizardPage.createObject(app, {accountType:modelData})) |
62 | } | 62 | } |
63 | } | ||
64 | |||
65 | Controls2.Button { | ||
66 | |||
67 | Layout.fillWidth: true | ||
68 | |||
69 | text: "gmail account" | ||
70 | |||
71 | onClicked: { | ||
72 | stack.push(gmail) | ||
73 | } | ||
74 | } | ||
75 | |||
76 | Controls2.Button { | ||
77 | |||
78 | Layout.fillWidth: true | ||
79 | |||
80 | text: "imap account" | ||
81 | |||
82 | onClicked: { | ||
83 | stack.push(imap) | ||
84 | } | ||
85 | } | ||
86 | |||
87 | Controls2.Button { | ||
88 | |||
89 | Layout.fillWidth: true | ||
90 | |||
91 | text: "maildir archive" | ||
92 | |||
93 | onClicked: { | ||
94 | stack.push(maildir) | ||
95 | } | 63 | } |
96 | } | 64 | } |
97 | } | 65 | } |
@@ -99,30 +67,8 @@ Controls2.Popup { | |||
99 | } | 67 | } |
100 | 68 | ||
101 | Component { | 69 | Component { |
102 | id: kolabnow | 70 | id: wizardPage |
103 | 71 | AccountWizardPage { | |
104 | CreateKolabNow { | ||
105 | } | ||
106 | } | ||
107 | |||
108 | Component { | ||
109 | id: gmail | ||
110 | |||
111 | CreateGmail { | ||
112 | } | ||
113 | } | ||
114 | |||
115 | Component { | ||
116 | id: imap | ||
117 | |||
118 | CreateImap { | ||
119 | } | ||
120 | } | ||
121 | |||
122 | Component { | ||
123 | id: maildir | ||
124 | |||
125 | CreateMaildir { | ||
126 | } | 72 | } |
127 | } | 73 | } |
128 | } | 74 | } |