summaryrefslogtreecommitdiffstats
path: root/sample/qml/vics.qml
diff options
context:
space:
mode:
authorwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>2019-02-13 18:10:20 +0800
committerwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>2019-02-15 10:56:06 +0800
commitaee1b69e8e207081a3d8b2670980671a9fbc78b8 (patch)
tree86e71a4d08908c8c6711400a810bbbb00f19f803 /sample/qml/vics.qml
parent483c21f9d648f2cd58e00f39fcbee7b5dcbe2bc5 (diff)
Add onscreenapp
Onscreenapp is a qt application for showing onscreens. Applications can show/hide onscreen by calling homescreen-service's showWindow/hideWindow verb. Applications also can customize onscreen's title,type, display contents and buttons. Some images about onscreen pattern had uploaded in JIRA SPEC-1967. Bug-AGL: SPEC-1967 Change-Id: I421193f7d089584a26db629be27414d050a74337 Signed-off-by: wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
Diffstat (limited to 'sample/qml/vics.qml')
-rw-r--r--sample/qml/vics.qml47
1 files changed, 47 insertions, 0 deletions
diff --git a/sample/qml/vics.qml b/sample/qml/vics.qml
new file mode 100644
index 0000000..2848fbc
--- /dev/null
+++ b/sample/qml/vics.qml
@@ -0,0 +1,47 @@
+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: onScreenVICS
+ visible: true
+ width: 1079
+ height: 400
+ scale: screenInfo.scale_factor()
+
+ function qmlOnScreenParameter(message) {
+ console.log(qsTr('OnScreenVICS:QML:System >>> qmlOnScreenMessage.'), message);
+ var message_json = JSON.parse (message);
+ vics_info.text = message_json.info;
+ }
+
+ Label {
+ id: vics_info
+ x: 40
+ y: 72
+ width: 1000
+ height: 200
+ color: "#eeeeec"
+ text: "show vics inofo"
+ font.pixelSize: 50
+ textFormat: Text.AutoText
+ font.wordSpacing: 0
+ verticalAlignment: Text.AlignVCenter
+ horizontalAlignment: Text.AlignHCenter
+ }
+
+ Button {
+ id: button
+ anchors.top: vics_info.bottom
+ anchors.topMargin: 100
+ anchors.horizontalCenter: parent.horizontalCenter
+ text: qsTr("OK")
+
+ onClicked: {
+ eventHandler.onScreenReply("OK");
+ }
+ }
+
+}