Changeset View
Changeset View
Standalone View
Standalone View
example/accounts.qml
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Line(s) | 40 | ListView { | |||
---|---|---|---|---|---|
49 | 49 | | |||
50 | model: OA.ProviderModel {} | 50 | model: OA.ProviderModel {} | ||
51 | delegate: Button { | 51 | delegate: Button { | ||
52 | anchors.horizontalCenter: parent.horizontalCenter | 52 | anchors.horizontalCenter: parent.horizontalCenter | ||
53 | text: displayName | 53 | text: displayName | ||
54 | 54 | | |||
55 | Component { | 55 | Component { | ||
56 | id: jobComponent | 56 | id: jobComponent | ||
57 | CreateAccount {} | 57 | CreateAccountJob {} | ||
58 | } | 58 | } | ||
59 | 59 | | |||
60 | onClicked: { | 60 | onClicked: { | ||
61 | var job = jobComponent.createObject(stack, { providerName: providerId}) | 61 | var job = jobComponent.createObject(stack, { providerName: providerId}) | ||
62 | job.start() | 62 | job.start() | ||
63 | } | 63 | } | ||
64 | } | 64 | } | ||
65 | } | 65 | } | ||
66 | } | 66 | } | ||
67 | } | 67 | } |