RemoveChildDialog: Don't wrap delegates in FormCard

This commit is contained in:
Carl Schwan
2024-09-24 18:04:29 +02:00
parent 857412d9cc
commit c28ca9087c

View File

@@ -32,20 +32,18 @@ Kirigami.Dialog {
onAccepted: parentRoom.removeChild(root.roomId, removeOfficalCheck.checked) onAccepted: parentRoom.removeChild(root.roomId, removeOfficalCheck.checked)
contentItem: FormCard.FormCardPage { contentItem: ColumnLayout {
FormCard.FormCard { spacing: 0
Layout.topMargin: Kirigami.Units.largeSpacing FormCard.FormTextDelegate {
FormCard.FormTextDelegate { text: i18n("The child %1 will be removed from the space %2", root.displayName, root.parentDisplayName)
text: i18n("The child %1 will be removed from the space %2", root.displayName, root.parentDisplayName) textItem.wrapMode: Text.Wrap
textItem.wrapMode: Text.Wrap }
} FormCard.FormCheckDelegate {
FormCard.FormCheckDelegate { id: removeOfficalCheck
id: removeOfficalCheck visible: root.isDeclaredParent
visible: root.isDeclaredParent enabled: root.canSetParent
enabled: root.canSetParent text: i18n("The current space is the official parent of this room, should this be cleared?")
text: i18n("The current space is the official parent of this room, should this be cleared?") checked: root.canSetParent
checked: root.canSetParent
}
} }
} }
} }