X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=app%2Fsystem.qml;fp=app%2Fsystem.qml;h=3a174c87637a0daa8c2d7531c5ed40bb874cdce6;hb=4ccb23ff85897f668f56a2566aceaa1b59dc64f6;hp=0000000000000000000000000000000000000000;hpb=ec044f44133cad1d12311345437b13b1a953226e;p=apps%2Fonscreenapp.git diff --git a/app/system.qml b/app/system.qml new file mode 100644 index 0000000..3a174c8 --- /dev/null +++ b/app/system.qml @@ -0,0 +1,53 @@ +import QtQuick 2.6 +import QtQuick.Window 2.2 +import QtQuick.Layouts 1.1 +import QtQuick.Controls 2.0 +import AGL.Demo.Controls 1.0 + +Item { + id: onScreenSystem + visible: true + width: 640 + height: 720 + + function qmlOnScreenMessage(text) { + console.log(qsTr('OnScreenApp:QML:System >>> qmlOnScreenMessage.')); + label.text = text; + } + + // Image { + // id : background_image + // anchors.fill: parent + // anchors.topMargin: 0 + // anchors.bottomMargin: 0 + // source: "images/oval_1079x400.png" + // } + + Label { + id: label + x: 0 + y: 100 + width: 640 + height: 100 + color: "#eeeeec" + text: "system alert" + font.pixelSize: 50 + textFormat: Text.AutoText + font.wordSpacing: 0 + verticalAlignment: Text.AlignVCenter + horizontalAlignment: Text.AlignHCenter + } + + Button { + id: button + x: 270 + y: 250 + text: qsTr("OK") + + onClicked: { + label.text = "system reject" + eventHandler.onScreenReply("{ \"System\": \"system reject\" }"); + } + } + +}