aboutsummaryrefslogtreecommitdiffstats
path: root/DemoApplication/controls/MessageDialog.qml
blob: 762c9aaedfd6ec8af582b337f1bfbdf99a37b2e3 (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
import QtQuick 2.9
import QtQuick.Controls 2.4
import QtQuick.Window 2.12
import QtQuick.Layouts 1.3
import controls 1.0

Window {
    id: root
    width: 300
    height: 150

    ColumnLayout {
        anchors.fill: parent

        Text {
            Layout.alignment: Qt.AlignHCenter
            text: "This is a dialog!"
        }

        Row {
            Layout.alignment: Qt.AlignHCenter
            CNButton {
                text: "Yes"
                focus: true
                onClicked: { root.close(); }
            }
            CNButton {
                text: "Whatever"
                onClicked: { root.close(); }
            }
            CNButton {
                text: "No"
                onClicked: { root.close(); }
            }
        }
    }


}