summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorKirill Burtsev <kirill.burtsev@qt.io>2021-07-13 12:21:50 +0200
committerKirill Burtsev <kirill.burtsev@qt.io>2021-07-21 14:22:41 +0200
commitabd050e9806123cbc6288e7d33ed01ceb2921766 (patch)
tree4439d2388b32bd56770ef4a24015d6d9821c8741 /examples
parentd79b3b4819bc0986a10b432a3e3f461017d310cc (diff)
downloadqtwebengine-abd050e9806123cbc6288e7d33ed01ceb2921766.tar.gz
Remove duplicated 'downloadProgress' in favor of separate signals
Pick-to: 6.2 Change-Id: Ib825d63c89e591e740b206f43c3eadbf32319daa Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/webenginewidgets/simplebrowser/doc/src/simplebrowser.qdoc2
-rw-r--r--examples/webenginewidgets/simplebrowser/downloadwidget.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/webenginewidgets/simplebrowser/doc/src/simplebrowser.qdoc b/examples/webenginewidgets/simplebrowser/doc/src/simplebrowser.qdoc
index 2e68df337..b10c6d4f0 100644
--- a/examples/webenginewidgets/simplebrowser/doc/src/simplebrowser.qdoc
+++ b/examples/webenginewidgets/simplebrowser/doc/src/simplebrowser.qdoc
@@ -334,7 +334,7 @@
\printuntil /^\}/
The \l QWebEngineDownloadRequest object will periodically emit the \l
- {QWebEngineDownloadRequest::}{downloadProgress} signal to notify potential
+ {QWebEngineDownloadRequest::}{receivedBytesChanged} signal to notify potential
observers of the download progress and the \l
{QWebEngineDownloadRequest::}{stateChanged} signal when the download is
finished or when an error occurs. See \c downloadmanagerwidget.cpp for an
diff --git a/examples/webenginewidgets/simplebrowser/downloadwidget.cpp b/examples/webenginewidgets/simplebrowser/downloadwidget.cpp
index e9caa8658..1ce97e0e9 100644
--- a/examples/webenginewidgets/simplebrowser/downloadwidget.cpp
+++ b/examples/webenginewidgets/simplebrowser/downloadwidget.cpp
@@ -72,8 +72,8 @@ DownloadWidget::DownloadWidget(QWebEngineDownloadRequest *download, QWidget *par
emit removeClicked(this);
});
- connect(m_download, &QWebEngineDownloadRequest::downloadProgress,
- this, &DownloadWidget::updateWidget);
+ connect(m_download, &QWebEngineDownloadRequest::totalBytesChanged, this, &DownloadWidget::updateWidget);
+ connect(m_download, &QWebEngineDownloadRequest::receivedBytesChanged, this, &DownloadWidget::updateWidget);
connect(m_download, &QWebEngineDownloadRequest::stateChanged,
this, &DownloadWidget::updateWidget);