add source for ces2019 horizontal
[apps/onscreenapp.git] / app / system.qml
1 import QtQuick 2.6
2 import QtQuick.Window 2.2
3 import QtQuick.Layouts 1.1
4 import QtQuick.Controls 2.0
5 import AGL.Demo.Controls 1.0
6
7 Item {
8     id: onScreenSystem
9     visible: true
10     width: 640
11     height: 720
12
13     function qmlOnScreenMessage(text) {
14         console.log(qsTr('OnScreenApp:QML:System >>> qmlOnScreenMessage.'));
15         label.text = text;
16     }
17
18     // Image {
19     //     id : background_image
20     //     anchors.fill: parent
21     //     anchors.topMargin: 0
22     //     anchors.bottomMargin: 0
23     //     source: "images/oval_1079x400.png"
24     // }
25
26     Label {
27         id: label
28         x: 0
29         y: 100
30         width: 640
31         height: 100
32         color: "#eeeeec"
33         text: "system alert"
34         font.pixelSize: 50
35         textFormat: Text.AutoText
36         font.wordSpacing: 0
37         verticalAlignment: Text.AlignVCenter
38         horizontalAlignment: Text.AlignHCenter
39     }
40
41     Button {
42         id: button
43         x: 270
44         y: 250
45         text: qsTr("OK")
46
47         onClicked: {
48             label.text = "system reject"
49             eventHandler.onScreenReply("{ \"System\": \"system reject\" }");
50         }
51     }
52
53 }