app/: Fixes and some monior tweaks to the qml file
[apps/onscreenapp.git] / app / main.qml
index 99d50f8..dd478c3 100644 (file)
@@ -25,8 +25,8 @@ Window {
     id: root
     flags: Qt.FramelessWindowHint
     visible: true
-    x: 0
-    y:         218
+    x: 0       // note, these are not set here
+    y:         218     // note, these are not set here
     width: 1080
     height: 1488
     color: '#00000000'
@@ -108,6 +108,13 @@ Window {
         ons.btn1Name = onscreenModel.buttonName(0)
         ons.btn2Name = onscreenModel.buttonName(1)
         ons.btn3Name = onscreenModel.buttonName(2)
+
+       console.log("dsp_title = " + ons.dsp_title + ", dsp_contents = " + ons.dsp_contents)
+       if (ons.btnNum > 0) {
+               console.log("Got ons.btNum > 0  " + ons.btnNum)
+       } else {
+               console.log("ons.btNum is " + ons.btnNum)
+       }
         ons_timer.running =  ons.btnNum > 0 ? false : true
         ons.dsp_sts = "show"
     }
@@ -122,4 +129,8 @@ Window {
         console.log(qsTr('onscreenapp >>> setModel status: ' + data));
         onscreenModel.setModel(data)
     }
+
+    function clearOnScreenModel() {
+           onscreenModel.clearModel()
+    }
 }