summaryrefslogtreecommitdiffstats
path: root/app/main.qml
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2020-04-13 14:48:20 +0300
committerMarius Vlad <marius.vlad@collabora.com>2020-04-21 22:53:13 +0300
commit98dab0eebc3dc0f567be3f80ab129cbcc71738db (patch)
treea4dad9bda9fd6d3d9819ba920013bf0cf835496c /app/main.qml
parent9e76cf1b66b40a0e502c667dbbf53164261956b5 (diff)
app: Fixes and some monior tweaks to the qml filesandbox/mvlad/agl-compositor
- app.pro: Remove depends on windowmanager and homescreen when building - app: Fake an event - adjust the window size - add the app state events Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Diffstat (limited to 'app/main.qml')
-rw-r--r--app/main.qml19
1 files changed, 15 insertions, 4 deletions
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()
+ }
}