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:
parent
66e0079569
commit
0394961f95
@ -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
|
||||
|
@ -432,9 +432,9 @@ QT_BEGIN_NAMESPACE
|
||||
A constant that can be used for enabling transfer
|
||||
timeouts with a preset value.
|
||||
|
||||
\value TransferTimeoutPreset The transfer timeout in milliseconds.
|
||||
Used if setTimeout() is called
|
||||
without an argument.
|
||||
\value DefaultTransferTimeoutConstant The transfer timeout in milliseconds.
|
||||
Used if setTimeout() is called
|
||||
without an argument.
|
||||
*/
|
||||
|
||||
class QNetworkRequestPrivate: public QSharedData, public QNetworkHeadersPrivate
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user