X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=sample%2Fapp%2Fmain.qml;fp=sample%2Fapp%2Fmain.qml;h=4d23921d63cc336c041aed1e6d5129173e88baac;hb=85a1f5f0305fda98d7077bab78070456bcd680ac;hp=b9f415b0708edf81cb76607794aef7b63e9050cb;hpb=4bf86cf93bda1228acef694329e2a58bf58cf528;p=apps%2Fonscreenapp.git diff --git a/sample/app/main.qml b/sample/app/main.qml index b9f415b..4d23921 100644 --- a/sample/app/main.qml +++ b/sample/app/main.qml @@ -7,8 +7,8 @@ import AGL.Demo.Controls 1.0 ApplicationWindow { id: root visible: true - width: 1080 - height: 1487 + width: Screen.width + height: Screen.height property string onsId: qsTr("onscreenapp") property string onsTitle: qsTr("One Button title") @@ -339,7 +339,13 @@ ApplicationWindow { else postmsg += "}" - eventHandler.showWindow(onsId, postmsg); + // if the application is not already started, start it + // if the application is not started, the first time we start + // it will by shown by default + eventHandler.start(onsId, postmsg) + + // we just need to display + eventHandler.showWindow(onsId, postmsg) } function qmlOnReplyShowWindow(text) {