Rename TransferTimeoutPreset to DefaultTransferTimeoutConstant

Found in API review. Replacing with the suggested name which is more Qt-ish.
And also preventively fix the name to contain its enum's name to follow the
conventions.

Change-Id: I00b510e36ccc831f107ecc3c79943d617726b4fb
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
Timur Pocheptsov 2020-02-25 11:11:28 +01:00
parent 66e0079569
commit 0394961f95
3 changed files with 6 additions and 6 deletions

View File

@ -171,7 +171,7 @@ public:
void setAutoDeleteReplies(bool autoDelete);
int transferTimeout() const;
void setTransferTimeout(int timeout = QNetworkRequest::TransferTimeoutPreset);
void setTransferTimeout(int timeout = QNetworkRequest::DefaultTransferTimeoutConstant);
Q_SIGNALS:
#ifndef QT_NO_NETWORKPROXY

View File

@ -432,7 +432,7 @@ QT_BEGIN_NAMESPACE
A constant that can be used for enabling transfer
timeouts with a preset value.
\value TransferTimeoutPreset The transfer timeout in milliseconds.
\value DefaultTransferTimeoutConstant The transfer timeout in milliseconds.
Used if setTimeout() is called
without an argument.
*/

View File

@ -135,7 +135,7 @@ public:
};
enum TransferTimeoutConstant {
TransferTimeoutPreset = 30000
DefaultTransferTimeoutConstant = 30000
};
QNetworkRequest();
@ -190,7 +190,7 @@ public:
void setHttp2Configuration(const QHttp2Configuration &configuration);
int transferTimeout() const;
void setTransferTimeout(int timeout = TransferTimeoutPreset);
void setTransferTimeout(int timeout = DefaultTransferTimeoutConstant);
#endif // QT_CONFIG(http) || defined(Q_CLANG_QDOC)
private:
QSharedDataPointer<QNetworkRequestPrivate> d;