mirror of
https://github.com/PancakeTAS/lsfg-vk.git
synced 2026-04-25 20:02:13 +00:00
28 lines
537 B
QML
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
|
|
}
|
|
}
|