blob: bfb4581da8a9035699936b24372fb1c9da41cf60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
// Copyright (C) 2026 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick 2.0
import FlowView 1.0
import QtQuick.Dialogs 1.1
FlowDecision {
id: root
property alias text: dialog.text
function trigger() {
dialog.open()
}
property MessageDialog dialog: MessageDialog {
id: dialog
//property QtObject yesTarget
//property QtObject noTarget
//modal: true
//visible: false
standardButtons: StandardButton.Yes | StandardButton.No
onYes: {
print("acc")
print("yes")
root.targets[0].trigger()
}
onNo: {
root.targets[1].trigger()
}
Component.onCompleted: print(dialog.footer)
}
}
|