Commit a4ccdc75 authored by Jonah Brüchert's avatar Jonah Brüchert 🌳

Merge branch 'accounts-fix' into 'master'

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

See merge request kde/plasma-settings!11
parents c794c4d6 78f8e8c2
Pipeline #4622 passed with stage
in 14 minutes and 55 seconds
......@@ -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