Verified Commit 923a9dbc authored by ivan tkachenko's avatar ivan tkachenko
Browse files

kcm: Simplify ListView sections using existing shorthand role

(cherry picked from commit ee29bb8f)
parent d9bc7429
Pipeline #240323 passed with stage
in 49 seconds
......@@ -154,9 +154,10 @@ ScrollViewKCM {
sourceModel: BluezQt.DevicesModel { }
}
section.property: "Connected"
section.property: "Section"
section.delegate: Kirigami.ListSectionHeader {
text: section === "true" ? i18n("Connected") : i18n("Available")
required property string section
text: section
}
delegate: Kirigami.SwipeListItem {
......
Supports Markdown
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