Changeset View
Changeset View
Standalone View
Standalone View
src/kcm/package/contents/ui/Accounts.qml
Show All 28 Lines | |||||
29 | import org.kde.kcm 1.2 | 29 | import org.kde.kcm 1.2 | ||
30 | 30 | | |||
31 | import Ubuntu.OnlineAccounts 0.1 as OA | 31 | import Ubuntu.OnlineAccounts 0.1 as OA | ||
32 | 32 | | |||
33 | ScrollViewKCM { | 33 | ScrollViewKCM { | ||
34 | id: kaccountsRoot | 34 | id: kaccountsRoot | ||
35 | 35 | | |||
36 | // Existing accounts | 36 | // Existing accounts | ||
37 | ListView { | 37 | view: ListView { | ||
38 | model: OA.AccountServiceModel { | 38 | model: OA.AccountServiceModel { | ||
39 | id: accountsModel | 39 | id: accountsModel | ||
40 | service: "global" | 40 | service: "global" | ||
41 | includeDisabled: true | 41 | includeDisabled: true | ||
42 | } | 42 | } | ||
43 | 43 | | |||
44 | delegate: Kirigami.SwipeListItem { | 44 | delegate: Kirigami.SwipeListItem { | ||
45 | width: ListView.view.width | 45 | width: ListView.view.width | ||
46 | 46 | | |||
47 | contentItem: Controls.Label { | 47 | contentItem: Controls.Label { | ||
48 | text: i18n("%1 (%2)", model.displayName, providerName) | 48 | text: i18n("%1 (%2)", model.displayName, model.providerName) | ||
49 | 49 | | |||
50 | OA.Account { | 50 | OA.Account { | ||
51 | id: account | 51 | id: account | ||
52 | objectHandle: model.accountHandle | 52 | objectHandle: model.accountHandle | ||
53 | } | 53 | } | ||
54 | } | 54 | } | ||
55 | actions: [ | 55 | actions: [ | ||
56 | Kirigami.Action { | 56 | Kirigami.Action { | ||
Show All 19 Lines |