remove reparenting
This commit is contained in:
parent
8fede53c82
commit
af8fbb990b
@ -42,12 +42,10 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
GridLayout {
|
ColumnLayout {
|
||||||
id: grid
|
id: grid
|
||||||
|
|
||||||
columns: userSettingsDialog.collapsed ? 1 : 2
|
spacing: Nheko.paddingMedium
|
||||||
rowSpacing: Nheko.paddingMedium
|
|
||||||
columnSpacing: Nheko.paddingMedium
|
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.leftMargin: userSettingsDialog.collapsed ? 0 : (userSettingsDialog.width-userSettingsDialog.collapsePoint) * 0.4 + Nheko.paddingLarge
|
anchors.leftMargin: userSettingsDialog.collapsed ? 0 : (userSettingsDialog.width-userSettingsDialog.collapsePoint) * 0.4 + Nheko.paddingLarge
|
||||||
@ -55,17 +53,14 @@ Rectangle {
|
|||||||
|
|
||||||
Repeater {
|
Repeater {
|
||||||
model: UserSettingsModel
|
model: UserSettingsModel
|
||||||
|
Layout.fillWidth:true
|
||||||
|
|
||||||
delegate: Item {
|
delegate: GridLayout {
|
||||||
|
columns: collapsed? 1 : 2
|
||||||
|
rows: collapsed? 2: 1
|
||||||
required property var model
|
required property var model
|
||||||
id: r
|
id: r
|
||||||
|
|
||||||
Component.onCompleted: {
|
|
||||||
while (children.length) {
|
|
||||||
children[0].parent = grid;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
Layout.alignment: Qt.AlignLeft
|
Layout.alignment: Qt.AlignLeft
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
Loading…
Reference in New Issue
Block a user