diff options
author | Bernd Weimer <bernd.weimer@qt.io> | 2022-01-18 16:02:51 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-01-19 10:06:22 +0000 |
commit | 288014ba4531dcf23bc2eb0ef71454e20d3cb83d (patch) | |
tree | 78571a6d24009e83ae876a71ecd8292f778a96b1 /examples/applicationmanager/intents | |
parent | e6b66dcf3e7504d44e0e5d14d82a1bf17a7ef12d (diff) |
Improve examples
Fixed build issues, avoided warnings and improved output.
Change-Id: I07f2e950399fb7b5a934686e5efe48cfaf7135e4
Reviewed-by: Robert Griebl <robert.griebl@qt.io>
(cherry picked from commit 98e900a40c9bb237b0c0ff5e50cc06f45923b42a)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
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 }) } |