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 ...@@ -31,12 +31,12 @@ import org.kde.kcm 1.2
import Ubuntu.OnlineAccounts 0.1 as OA import Ubuntu.OnlineAccounts 0.1 as OA
SimpleKCM { ScrollViewKCM {
id: kaccountsRoot id: kaccountsRoot
objectName: "kaccountsModule" objectName: "kaccountsModule"
// Existing accounts // Existing accounts
ListView { view: ListView {
clip: true clip: true
model: OA.AccountServiceModel { model: OA.AccountServiceModel {
id: accountsModel id: accountsModel
...@@ -45,7 +45,9 @@ SimpleKCM { ...@@ -45,7 +45,9 @@ SimpleKCM {
} }
delegate: Kirigami.SwipeListItem { delegate: Kirigami.SwipeListItem {
Controls.Label { width: ListView.view.width
contentItem: Controls.Label {
text: model.displayName + " (" + providerName + ")" text: model.displayName + " (" + providerName + ")"
OA.Account { OA.Account {
...@@ -79,6 +81,15 @@ SimpleKCM { ...@@ -79,6 +81,15 @@ SimpleKCM {
} }
} }
Component {
id: jobComponent
CreateAccount {
onFinished: {
availableAccountsSheet.close()
}
}
}
Kirigami.OverlaySheet { Kirigami.OverlaySheet {
id: availableAccountsSheet id: availableAccountsSheet
parent: kaccountsRoot.parent parent: kaccountsRoot.parent
...@@ -100,14 +111,6 @@ SimpleKCM { ...@@ -100,14 +111,6 @@ SimpleKCM {
} }
} }
} }
Component {
id: jobComponent
CreateAccount {
onFinished: {
availableAccountsSheet.close()
}
}
}
} }
OA.AccountServiceModel { 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