summaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qmltests/data
diff options
context:
space:
mode:
authorBalazs Egedi <egedib@inf.u-szeged.hu>2021-06-09 14:38:20 +0200
committerBalazs Egedi <egedib@inf.u-szeged.hu>2021-06-10 08:32:32 +0000
commitc3108a1a7ab64a3fff2c2b7284ac22020571e2b7 (patch)
treee0814a5c530fc129bf115e221d2c3455d7b95d6a /tests/auto/quick/qmltests/data
parenta961779c2c7d13ca5a5d830c4af94a60e4322e26 (diff)
FIXUP: Fix QWebEngineDownloadRequest signals
- Included the test for Quick Controls 2 in CMake. - Fixed warning about deprecated injection of parameters into signal handlers. Pick-to: 6.2 Change-Id: I8f517e84cb6b0c67e3f12bc3d047f0b61096d5fe Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'tests/auto/quick/qmltests/data')
-rw-r--r--tests/auto/quick/qmltests/data/tst_download.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/quick/qmltests/data/tst_download.qml b/tests/auto/quick/qmltests/data/tst_download.qml
index a26060046..bac4d5cc5 100644
--- a/tests/auto/quick/qmltests/data/tst_download.qml
+++ b/tests/auto/quick/qmltests/data/tst_download.qml
@@ -96,7 +96,7 @@ TestWebEngineView {
WebEngineProfile {
id: testDownloadProfile
- onDownloadRequested: {
+ onDownloadRequested: function(download) {
testDownloadProfile.downloadPath = tempDir.path()
downloadState.push(download.state)
downloadItemConnections.target = download
@@ -126,7 +126,7 @@ TestWebEngineView {
downloadUrl = download.url
suggestedFileName = download.suggestedFileName
}
- onDownloadFinished: {
+ onDownloadFinished: function(download) {
receivedBytes = download.receivedBytes;
}
}