X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=sample%2Fapp%2Fmain.qml;fp=sample%2Fapp%2Fmain.qml;h=2979d88f97b2f1229c406839c61c1c9c98473fbc;hb=831dc2946ce773ce2ed944ea9253350e5dd081bb;hp=f0a65e99d94df38ad277ef515d6724b3d8534bfd;hpb=cd39ff2c9987904617c53685a75f5fe89513ce81;p=apps%2Fonscreenapp.git diff --git a/sample/app/main.qml b/sample/app/main.qml index f0a65e9..2979d88 100644 --- a/sample/app/main.qml +++ b/sample/app/main.qml @@ -20,6 +20,7 @@ ApplicationWindow { property string postmsg: qsTr("") property string btndata: qsTr("") property int pid: -1 + property bool onscreen_role_set: false Label { id: title @@ -340,6 +341,11 @@ ApplicationWindow { else postmsg += "}" + if (!onscreen_role_set) { + eventHandler.set_window_poup(onsId, 0, 218) + onscreen_role_set = true + } + // if the application is not already started, start it if (pid == -1) { // if the application is not started, then the first time