Make transferTimeout getters const
Change-Id: I84c7e830ed9cf58c05ff06052c3df3beb74bb723 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
This commit is contained in:
parent
b455e45ab2
commit
7bb0d5379d
@ -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;
|
||||
}
|
||||
|
@ -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:
|
||||
|
@ -936,7 +936,7 @@ void QNetworkRequest::setHttp2Configuration(const QHttp2Configuration &configura
|
||||
|
||||
\sa setTransferTimeout
|
||||
*/
|
||||
int QNetworkRequest::transferTimeout()
|
||||
int QNetworkRequest::transferTimeout() const
|
||||
{
|
||||
return d->transferTimeout;
|
||||
}
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user