diff options
author | Balazs Egedi <egedib@inf.u-szeged.hu> | 2021-09-30 16:22:57 +0200 |
---|---|---|
committer | Balazs Egedi <egedib@inf.u-szeged.hu> | 2021-10-18 10:18:31 +0200 |
commit | ae74f9f488e32ba60ee58718c90ea911565776d7 (patch) | |
tree | 12a98be172af6c031e7ff1bbcde04d7346ac8e8a /tests/auto/quick/qmltests/data/tst_notification.qml | |
parent | 4443d0e27c4b989b4f8394125abc7d3170cfaf8f (diff) |
Fix warnings in QML tests regarding parameter injection
Parameter "param" is not declared. Injection of parameters into
signal handlers is deprecated. Use JavaScript functions with formal
parameters instead.
Pick-to: 6.2
Change-Id: Iea3583feb10fc56424ebb070e9b19e605c252773
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'tests/auto/quick/qmltests/data/tst_notification.qml')
-rw-r--r-- | tests/auto/quick/qmltests/data/tst_notification.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/quick/qmltests/data/tst_notification.qml b/tests/auto/quick/qmltests/data/tst_notification.qml index 802c75f7c..46a21ff4d 100644 --- a/tests/auto/quick/qmltests/data/tst_notification.qml +++ b/tests/auto/quick/qmltests/data/tst_notification.qml @@ -48,7 +48,7 @@ TestWebEngineView { signalName: 'featurePermissionRequested' } - onFeaturePermissionRequested: { + onFeaturePermissionRequested: function(securityOrigin, feature) { if (feature === WebEngineView.Notifications) { view.permissionRequested = true view.securityOrigin = securityOrigin |