summaryrefslogtreecommitdiffstats
path: root/examples/applicationmanager/intents/system-ui.qml
diff options
context:
space:
mode:
authorBernd Weimer <bernd.weimer@qt.io>2022-01-18 16:02:51 +0100
committerBernd Weimer <bernd.weimer@qt.io>2022-01-19 09:17:09 +0100
commit98e900a40c9bb237b0c0ff5e50cc06f45923b42a (patch)
tree06435b38884c34cb325c80ca6115fdfc96167c29 /examples/applicationmanager/intents/system-ui.qml
parente7aae3561f7b8c060dff2027a1a049e86ae78ad2 (diff)
Improve examples
Fixed build issues, avoided warnings and improved output. Pick-to: 6.2 6.3 Change-Id: I07f2e950399fb7b5a934686e5efe48cfaf7135e4 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
Diffstat (limited to 'examples/applicationmanager/intents/system-ui.qml')
-rw-r--r--examples/applicationmanager/intents/system-ui.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/applicationmanager/intents/system-ui.qml b/examples/applicationmanager/intents/system-ui.qml
index bf4bbc7e..058bb923 100644
--- a/examples/applicationmanager/intents/system-ui.qml
+++ b/examples/applicationmanager/intents/system-ui.qml
@@ -103,7 +103,7 @@ Item {
height: parent.height / 2
title: "System UI"
- onRequest: {
+ onRequest: (intentId, applicationId, parameters) => {
var request = IntentClient.sendIntentRequest(intentId, applicationId, parameters)
request.onReplyReceived.connect(function() {
sysui_page.setResult(request.requestId, request.succeeded,
@@ -121,7 +121,7 @@ Item {
names: { "en": "Rotate System UI" }
visibility: IntentObject.Public
- onRequestReceived: {
+ onRequestReceived: (request) => {
rotationAnimation.start()
request.sendReply({ "wasRequestedBy": request.requestingApplicationId })
}