mirror of
https://gitlab.com/eql/lqml.git
synced 2025-12-06 02:30:38 -08:00
23 lines
474 B
QML
23 lines
474 B
QML
import QtQuick 2.15
|
|
import QtQuick.Controls 2.15
|
|
|
|
Dialog {
|
|
anchors.centerIn: parent
|
|
title: "Confirm"
|
|
font.pixelSize: 18
|
|
modal: true
|
|
standardButtons: Dialog.Save | Dialog.Cancel
|
|
|
|
property alias text: message.text
|
|
property string callback
|
|
|
|
Text {
|
|
id: message
|
|
width: parent.width // without width word wrap won't work
|
|
wrapMode: Text.Wrap
|
|
font.pixelSize: 18
|
|
}
|
|
|
|
onAccepted: Lisp.call(callback, true)
|
|
onRejected: Lisp.call(callback, false)
|
|
}
|