diff options
author | 2016-12-09 13:19:51 +0000 | |
---|---|---|
committer | 2016-12-09 13:19:51 +0000 | |
commit | c8dac073aa7b1f7dbe5f20d95ea8e72379416de4 (patch) | |
tree | c3742d2ac2be3588fc58095f9a720f1ae631cf03 /app/hvac-demo.qml | |
parent | 240a5d1785f49653ac82242e3f092f5d175cca0a (diff) |
Added AGL/Demo qml dependancies
Change-Id: I994bce42371adf6a1919ad4a9d9c688e5519a839
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'app/hvac-demo.qml')
-rw-r--r-- | app/hvac-demo.qml | 9 |
1 files changed, 9 insertions, 0 deletions
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 |