Skip to content
Snippets Groups Projects
Commit af8fbb99 authored by Malte E's avatar Malte E
Browse files

remove reparenting

parent 8fede53c
No related branches found
No related tags found
No related merge requests found
Pipeline #2669 passed
......@@ -42,12 +42,10 @@ Rectangle {
}
GridLayout {
ColumnLayout {
id: grid
columns: userSettingsDialog.collapsed ? 1 : 2
rowSpacing: Nheko.paddingMedium
columnSpacing: Nheko.paddingMedium
spacing: Nheko.paddingMedium
anchors.fill: parent
anchors.leftMargin: userSettingsDialog.collapsed ? 0 : (userSettingsDialog.width-userSettingsDialog.collapsePoint) * 0.4 + Nheko.paddingLarge
......@@ -55,17 +53,14 @@ Rectangle {
Repeater {
model: UserSettingsModel
Layout.fillWidth:true
delegate: Item {
delegate: GridLayout {
columns: collapsed? 1 : 2
rows: collapsed? 2: 1
required property var model
id: r
Component.onCompleted: {
while (children.length) {
children[0].parent = grid;
}
}
Label {
Layout.alignment: Qt.AlignLeft
Layout.fillWidth: true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment