From e1448a54783e989be8463d5c0a08c36d336e2a72 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Fri, 31 May 2024 10:39:08 +0000 Subject: [PATCH] CreateRoomDialog: Add missing formcard separators (cherry picked from commit 87d707bc21c68da8c97b9173857ff27eab3171dc) Co-authored-by: Carl Schwan --- src/qml/CreateRoomDialog.qml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/qml/CreateRoomDialog.qml b/src/qml/CreateRoomDialog.qml index f417688e3..803c019dd 100644 --- a/src/qml/CreateRoomDialog.qml +++ b/src/qml/CreateRoomDialog.qml @@ -67,6 +67,11 @@ FormCard.FormCardPage { } } } + + FormCard.FormDelegateSeparator { + visible: root.showChildType + } + FormCard.FormTextFieldDelegate { id: roomNameField label: i18n("Name:") @@ -75,17 +80,27 @@ FormCard.FormCardPage { } } + FormCard.FormDelegateSeparator {} + FormCard.FormTextFieldDelegate { id: roomTopicField label: i18n("Topic:") onAccepted: ok.clicked() } + + FormCard.FormDelegateSeparator {} + FormCard.FormCheckDelegate { id: newOfficialCheck visible: root.parentId.length > 0 text: i18nc("@option:check As in make the space from which this dialog was created an official parent.", "Make this parent official") checked: true } + + FormCard.FormDelegateSeparator { + visible: root.parentId.length > 0 + } + FormCard.FormButtonDelegate { id: ok text: i18nc("@action:button", "Ok") @@ -211,6 +226,9 @@ FormCard.FormCardPage { }); } } + + FormCard.FormDelegateSeparator {} + FormCard.FormCheckDelegate { id: existingOfficialCheck visible: root.parentId.length > 0 @@ -230,6 +248,11 @@ FormCard.FormCardPage { return false; } } + + FormCard.FormDelegateSeparator { + visible: root.parentId.length > 0 + } + FormCard.FormCheckDelegate { id: makeCanonicalCheck text: i18nc("@option:check The canonical parent is the default one if a room has multiple parent spaces.", "Make this space the canonical parent") @@ -237,6 +260,9 @@ FormCard.FormCardPage { enabled: existingOfficialCheck.enabled } + + FormCard.FormDelegateSeparator {} + FormCard.FormButtonDelegate { text: i18nc("@action:button", "Ok") enabled: chosenRoomDelegate.visible