diff options
author | Bernd Weimer <bernd.weimer@qt.io> | 2022-01-18 16:02:51 +0100 |
---|---|---|
committer | Bernd Weimer <bernd.weimer@qt.io> | 2022-01-19 09:17:09 +0100 |
commit | 98e900a40c9bb237b0c0ff5e50cc06f45923b42a (patch) | |
tree | 06435b38884c34cb325c80ca6115fdfc96167c29 /examples/applicationmanager/intents | |
parent | e7aae3561f7b8c060dff2027a1a049e86ae78ad2 (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')
-rw-r--r-- | examples/applicationmanager/intents/shared/IntentsApplicationWindow.qml | 10 | ||||
-rw-r--r-- | examples/applicationmanager/intents/system-ui.qml | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/examples/applicationmanager/intents/shared/IntentsApplicationWindow.qml b/examples/applicationmanager/intents/shared/IntentsApplicationWindow.qml index 648d018d..a46554f1 100644 --- a/examples/applicationmanager/intents/shared/IntentsApplicationWindow.qml +++ b/examples/applicationmanager/intents/shared/IntentsApplicationWindow.qml @@ -65,7 +65,7 @@ ApplicationManagerWindow { title: ApplicationInterface.name["en"] //! [Send Intent] - onRequest: { + onRequest: (intentId, applicationId, parameters) => { var request = IntentClient.sendIntentRequest(intentId, applicationId, parameters) request.onReplyReceived.connect(function() { intentPage.setResult(request.requestId, request.succeeded, @@ -107,7 +107,7 @@ ApplicationManagerWindow { //! [Intent Handler] IntentHandler { intentIds: "rotate-window" - onRequestReceived: { + onRequestReceived: (request) => { rotationAnimation.start() request.sendReply({ "done": true }) } @@ -116,7 +116,7 @@ ApplicationManagerWindow { IntentHandler { intentIds: "scale-window" - onRequestReceived: { + onRequestReceived: (request) => { scaleAnimation.start() request.sendReply({ "done": true }) } @@ -124,7 +124,7 @@ ApplicationManagerWindow { IntentHandler { intentIds: "blink-window" - onRequestReceived: { + onRequestReceived: (request) => { blinkAnimation.start() request.sendReply({ "done": true }) } @@ -132,7 +132,7 @@ ApplicationManagerWindow { IntentHandler { intentIds: "blue-window-private" - onRequestReceived: { + onRequestReceived: (request) => { blueAnimation.start() request.sendReply({ "done": true }) } 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 }) } |