X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=app%2Fmain.qml;h=b66e4548ddf7db1e87f329589a01005fa5e10a5b;hb=98dab0eebc3dc0f567be3f80ab129cbcc71738db;hp=99d50f81a9aa861e162b7f868e6e237e2bf509ba;hpb=9e76cf1b66b40a0e502c667dbbf53164261956b5;p=apps%2Fonscreenapp.git diff --git a/app/main.qml b/app/main.qml index 99d50f8..b66e454 100644 --- a/app/main.qml +++ b/app/main.qml @@ -25,10 +25,10 @@ Window { id: root flags: Qt.FramelessWindowHint visible: true - x: 0 - y: 218 - width: 1080 - height: 1488 + x: 0 // note, these are not set here + y: 218 // note, these are not set here + width: 800 + height: 800 color: '#00000000' Onscreen { @@ -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() + } }