Make transferTimeout getters const

Change-Id: I84c7e830ed9cf58c05ff06052c3df3beb74bb723
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
This commit is contained in:
Ville Voutilainen 2019-11-22 13:48:15 +02:00
parent b455e45ab2
commit 7bb0d5379d
4 changed files with 4 additions and 4 deletions

View File

@ -1726,7 +1726,7 @@ void QNetworkAccessManager::setAutoDeleteReplies(bool shouldAutoDelete)
This timeout is zero if setTransferTimeout() hasn't been
called, which means that the timeout is not used.
*/
int QNetworkAccessManager::transferTimeout()
int QNetworkAccessManager::transferTimeout() const
{
return d_func()->transferTimeout;
}

View File

@ -170,7 +170,7 @@ public:
bool autoDeleteReplies() const;
void setAutoDeleteReplies(bool autoDelete);
int transferTimeout();
int transferTimeout() const;
void setTransferTimeout(int timeout = QNetworkRequest::TransferTimeoutPreset);
Q_SIGNALS:

View File

@ -936,7 +936,7 @@ void QNetworkRequest::setHttp2Configuration(const QHttp2Configuration &configura
\sa setTransferTimeout
*/
int QNetworkRequest::transferTimeout()
int QNetworkRequest::transferTimeout() const
{
return d->transferTimeout;
}

View File

@ -189,7 +189,7 @@ public:
QHttp2Configuration http2Configuration() const;
void setHttp2Configuration(const QHttp2Configuration &configuration);
int transferTimeout();
int transferTimeout() const;
void setTransferTimeout(int timeout = TransferTimeoutPreset);
#endif // QT_CONFIG(http) || defined(Q_CLANG_QDOC)
private: