Commit 34e5a40f authored by Marco Martin's avatar Marco Martin

export proper size hints for the sidebar

the ColumnLayout will keep overwriting its own implicitwidth
to a size based to the contents, so encapsulate it in an item that will
eport the expected contentWidth in order to never do an horizontal
scrollbar
parent 3936f864
......@@ -184,24 +184,29 @@ Rectangle {
}
}
ColumnLayout {
id: categories
spacing: 0
implicitWidth: categoriesScroll.width
property Item currentItem: children[1]
Repeater {
model: root.isContainment ? globalConfigModel : undefined
delegate: ConfigCategoryDelegate {}
}
Repeater {
model: configDialogFilterModel
delegate: ConfigCategoryDelegate {}
}
Repeater {
model: !root.isContainment ? globalConfigModel : undefined
delegate: ConfigCategoryDelegate {}
// Encapsulate as ColumnLayout will keep overwriting its own implicitWidth
Item {
implicitWidth: categoriesScroll.Layout.maximumWidth
implicitHeight: categories.implicitHeight
ColumnLayout {
id: categories
spacing: 0
width: categoriesScroll.width
property Item currentItem: children[1]
Repeater {
model: root.isContainment ? globalConfigModel : undefined
delegate: ConfigCategoryDelegate {}
}
Repeater {
model: configDialogFilterModel
delegate: ConfigCategoryDelegate {}
}
Repeater {
model: !root.isContainment ? globalConfigModel : undefined
delegate: ConfigCategoryDelegate {}
}
}
}
}
......
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