lsfg-vk/lsfg-vk-ui/rsc/dialogs/LargeDialog.qml
2025-12-25 04:32:22 +01:00

28 lines
537 B
QML

import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
Dialog {
property string name
default property alias content: inner.children
signal confirm()
id: root
title: name
onAccepted: root.confirm()
modal: true
dim: true
x: (parent.width - width) / 2
y: (parent.height - height) / 2
width: parent.width * 0.75
height: parent.height * 0.75
contentItem: ColumnLayout {
Layout.fillWidth: true
Layout.fillHeight: true
id: inner
spacing: 8
}
}