diff options
author | Shane Kearns <ext-shane.2.kearns@nokia.com> | 2012-05-24 16:14:28 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-14 05:26:35 +0200 |
commit | d6d9c8bf3245ec3d1ff05ae45d54baac64d76cec (patch) | |
tree | a06dd484063c9ad94ad21b98241b0d1afe4d0961 /src/network/access/qnetworkreplyhttpimpl_p.h | |
parent | 5a7937bb042a006482ed50f7b7de437e15e593ce (diff) |
choke downloadProgress signals
The QNetworkReply::downloadProgress signal is intended for updating
user interface components (e.g. a progress bar).
Limit signal emissions to 10 times per second, with an additional
signal just before the finished() signal to provide the 100% progress.
For the size of download where a progress bar is necessary, this
update frequency seems sufficient.
The implementation is done by dropping signals which would be emitted
less than 100ms after the previous signal emission.
Task-number: QTBUG-20449
Change-Id: I9c2dbe16c70f3270cbf98f3c74cf9d9a3f0ab900
Reviewed-by: David Faure <faure@kde.org>
Reviewed-by: Markus Goetz <markus@woboq.com>
Reviewed-by: Martin Petersson <Martin.Petersson@nokia.com>
Diffstat (limited to 'src/network/access/qnetworkreplyhttpimpl_p.h')
-rw-r--r-- | src/network/access/qnetworkreplyhttpimpl_p.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/network/access/qnetworkreplyhttpimpl_p.h b/src/network/access/qnetworkreplyhttpimpl_p.h index 8c911779a3..b73fdf3dc7 100644 --- a/src/network/access/qnetworkreplyhttpimpl_p.h +++ b/src/network/access/qnetworkreplyhttpimpl_p.h @@ -188,7 +188,6 @@ public: void checkForRedirect(const int statusCode); - // incoming from user QNetworkAccessManager *manager; QNetworkAccessManagerPrivate *managerPrivate; |