Commit b35b0128 authored by Nate Graham's avatar Nate Graham
Browse files

Bind list delegate widths using id, not parent

parent is invalid in the context of a list delegate, which causes a
console warning.
parent 59ed8ec3
......@@ -78,7 +78,7 @@ Kirigami.OverlaySheet {
cacheBuffer: Math.max(0, contentHeight)
delegate: ReviewDelegate {
width: parent.width
width: reviewsView.width
separator: index != ListView.view.count-1
onMarkUseful: page.model.markUseful(index, useful)
}
......
......@@ -28,7 +28,7 @@ Button
}
model: resource.channels(root).channels
delegate: RowLayout {
width: parent.width
width: view.width
readonly property bool current: resource.channel === modelData.name
Label {
Layout.fillWidth: true
......
......@@ -28,7 +28,7 @@ Button
model: resource.plugs(root)
delegate: CheckDelegate {
id: delegate
width: parent.width
width: view.width
text: model.display
checked: model.checked
onClicked: {
......
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