Code Review
/
apps
/
onscreenapp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
sample/app: Allow to set-up the onscreenapp as pop-up
[apps/onscreenapp.git]
/
sample
/
app
/
main.qml
diff --git
a/sample/app/main.qml
b/sample/app/main.qml
index
f0a65e9
..
2979d88
100644
(file)
--- 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 string postmsg: qsTr("")
property string btndata: qsTr("")
property int pid: -1
+ property bool onscreen_role_set: false
Label {
id: title
Label {
id: title
@@
-340,6
+341,11
@@
ApplicationWindow {
else
postmsg += "}"
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
// if the application is not already started, start it
if (pid == -1) {
// if the application is not started, then the first time