X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=apps%2Fonscreenapp.git;a=blobdiff_plain;f=app%2Fmain.qml;h=dd478c390f2db6ee5b1bfd89a4b47e689c84ff16;hp=99d50f81a9aa861e162b7f868e6e237e2bf509ba;hb=7ad4b093049453a54e4e0711d9e73ea693b85eea;hpb=69ab2870ea1fbac6808dac791e141f3009e98724 diff --git a/app/main.qml b/app/main.qml index 99d50f8..dd478c3 100644 --- a/app/main.qml +++ b/app/main.qml @@ -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() + } }