From c8dac073aa7b1f7dbe5f20d95ea8e72379416de4 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Fri, 9 Dec 2016 13:19:51 +0000 Subject: Added AGL/Demo qml dependancies Change-Id: I994bce42371adf6a1919ad4a9d9c688e5519a839 Signed-off-by: Romain Forlot --- app/hvac-demo.qml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'app/hvac-demo.qml') diff --git a/app/hvac-demo.qml b/app/hvac-demo.qml index 565b108..9474f53 100644 --- a/app/hvac-demo.qml +++ b/app/hvac-demo.qml @@ -18,10 +18,19 @@ import QtQuick 2.6 import QtQuick.Layouts 1.1 import QtQuick.Controls 2.0 import AGL.Demo.Controls 1.0 +import QtWebSockets 1.0 ApplicationWindow { id: root + // GET BINDINGS VARIABLES + property string port_str: Qt.application.arguments[1] + property string token_str: Qt.application.arguments[2] + property string address_str: "ws://localhost:"+port_str+"/api?token="+token_str + property string request_str: "" + property string status_str: "waiting..." + property var msgid_enu: { "call":2, "retok":3, "reterr":4, "event":5 } + ColumnLayout { anchors.fill: parent anchors.topMargin: width / 10 -- cgit 1.2.3-korg