Commit 388a4a1b authored by Nate Graham's avatar Nate Graham
Browse files

Use a title/subtitle paradigm for the dependency list items

It was made for this purpose; no need to roll our own display style.
parent 86772306
......@@ -19,7 +19,10 @@ Kirigami.LinkButton {
onDependenciesFound: {
view.model.clear()
for (var v in dependencies) {
view.model.append({display: i18n("<b>%1</b>: %2", v, dependencies[v])})
view.model.append({
"packageName": v,
"packageDescription": dependencies[v]
})
}
}
}
......@@ -41,7 +44,8 @@ Kirigami.LinkButton {
model: ListModel {}
delegate: Kirigami.BasicListItem {
width: view.width
text: modelData
text: model.packageName
subtitle: model.packageDescription
// No need to offer a hover/selection effect since these list
// items are non-interactive and non-selectable
activeBackgroundColor: "transparent"
......
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