summaryrefslogtreecommitdiffstats
path: root/examples/applicationmanager/intents
diff options
context:
space:
mode:
authorBernd Weimer <bernd.weimer@pelagicore.com>2020-03-13 17:53:13 +0100
committerBernd Weimer <bernd.weimer@pelagicore.com>2020-05-27 14:08:28 +0000
commitdf0d5e4730a85fd7ce13d10aced5fdb3ae7feef9 (patch)
tree23faf7bb0bd94b062ac00a2c6d5dd5641c9408c4 /examples/applicationmanager/intents
parent042476a1c1d18c5838791fc71e6dbb1d0d7e8b4e (diff)
Define functions in QML Connections explicitly
Don't use implicitly defined handler, since this is deprecated from Qt 5.15. This works since Qt 5.14 only, but we are tied to 5.15, anyways. Change-Id: I82e66b0c6186237757e060bfb21d86c91ec8498b Reviewed-by: Robert Griebl <robert.griebl@qt.io>
Diffstat (limited to 'examples/applicationmanager/intents')
-rw-r--r--examples/applicationmanager/intents/system-ui.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/applicationmanager/intents/system-ui.qml b/examples/applicationmanager/intents/system-ui.qml
index f212d3c8..9a88ed9a 100644
--- a/examples/applicationmanager/intents/system-ui.qml
+++ b/examples/applicationmanager/intents/system-ui.qml
@@ -144,7 +144,9 @@ Item {
//! [Connection]
Connections {
target: IntentServer
- onDisambiguationRequest: { disambiguationDialog.add(requestId, potentialIntents) }
+ function onDisambiguationRequest(requestId, potentialIntents) {
+ disambiguationDialog.add(requestId, potentialIntents)
+ }
}
//! [Connection]