Commit 78f8e8c2 authored by Jonah Brüchert's avatar Jonah Brüchert 🌳

modules: accounts: Fix footer placement and launch in Qt 5.13

parent c794c4d6
......@@ -31,12 +31,12 @@ import org.kde.kcm 1.2
import Ubuntu.OnlineAccounts 0.1 as OA
SimpleKCM {
ScrollViewKCM {
id: kaccountsRoot
objectName: "kaccountsModule"
// Existing accounts
ListView {
view: ListView {
clip: true
model: OA.AccountServiceModel {
id: accountsModel
......@@ -45,7 +45,9 @@ SimpleKCM {
}
delegate: Kirigami.SwipeListItem {
Controls.Label {
width: ListView.view.width
contentItem: Controls.Label {
text: model.displayName + " (" + providerName + ")"
OA.Account {
......@@ -79,6 +81,15 @@ SimpleKCM {
}
}
Component {
id: jobComponent
CreateAccount {
onFinished: {
availableAccountsSheet.close()
}
}
}
Kirigami.OverlaySheet {
id: availableAccountsSheet
parent: kaccountsRoot.parent
......@@ -100,14 +111,6 @@ SimpleKCM {
}
}
}
Component {
id: jobComponent
CreateAccount {
onFinished: {
availableAccountsSheet.close()
}
}
}
}
OA.AccountServiceModel {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment