diff options
author | Malte E <malte.e@mailbox.org> | 2022-02-19 21:47:19 +0100 |
---|---|---|
committer | Malte E <malte.e@mailbox.org> | 2022-02-19 21:47:19 +0100 |
commit | af8fbb990bffeec6fb4fe3799b097d47d9bff56f (patch) | |
tree | 19b3c345d86028953bc91060379b7a48b548c204 /resources/qml/pages | |
parent | let labels wrap and collapse below the back button (diff) | |
download | nheko-af8fbb990bffeec6fb4fe3799b097d47d9bff56f.tar.xz |
remove reparenting
Diffstat (limited to 'resources/qml/pages')
-rw-r--r-- | resources/qml/pages/UserSettingsPage.qml | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/resources/qml/pages/UserSettingsPage.qml b/resources/qml/pages/UserSettingsPage.qml index 94e345e3..495d208b 100644 --- a/resources/qml/pages/UserSettingsPage.qml +++ b/resources/qml/pages/UserSettingsPage.qml @@ -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 |