mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-08-04 15:12:25 -04:00
Workaround for a compilation error with Qt 5.12.
This commit is contained in:
parent
521a0e1a0d
commit
223d9f5d63
@ -31,7 +31,9 @@ FoxVerifier::FoxVerifier(QString user_agent, QNetworkAccessManager *manager,QStr
|
|||||||
|
|
||||||
reply_ = manager_->get(request_);
|
reply_ = manager_->get(request_);
|
||||||
connect(reply_, &QNetworkReply::finished, this, &FoxVerifier::httpFinished);
|
connect(reply_, &QNetworkReply::finished, this, &FoxVerifier::httpFinished);
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
|
||||||
connect(reply_, &QNetworkReply::errorOccurred, this, &FoxVerifier::errorOccurred);
|
connect(reply_, &QNetworkReply::errorOccurred, this, &FoxVerifier::errorOccurred);
|
||||||
|
#endif
|
||||||
connect(reply_, &QNetworkReply::redirected, this, &FoxVerifier::httpRedirected);
|
connect(reply_, &QNetworkReply::redirected, this, &FoxVerifier::httpRedirected);
|
||||||
connect(reply_, &QNetworkReply::encrypted, this, &FoxVerifier::httpEncrypted);
|
connect(reply_, &QNetworkReply::encrypted, this, &FoxVerifier::httpEncrypted);
|
||||||
#if QT_CONFIG(ssl)
|
#if QT_CONFIG(ssl)
|
||||||
@ -52,7 +54,7 @@ bool FoxVerifier::finished() {
|
|||||||
return finished_;
|
return finished_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
|
||||||
void FoxVerifier::errorOccurred(QNetworkReply::NetworkError code)
|
void FoxVerifier::errorOccurred(QNetworkReply::NetworkError code)
|
||||||
{
|
{
|
||||||
int status = reply_->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
|
int status = reply_->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
|
||||||
@ -65,6 +67,7 @@ void FoxVerifier::errorOccurred(QNetworkReply::NetworkError code)
|
|||||||
}
|
}
|
||||||
// TODO emit
|
// TODO emit
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void FoxVerifier::httpFinished()
|
void FoxVerifier::httpFinished()
|
||||||
{
|
{
|
||||||
@ -115,4 +118,4 @@ QString FoxVerifier::formatDecodeMessage(QDateTime ts, QString callsign, unsigne
|
|||||||
|
|
||||||
QString FoxVerifier::default_url() {
|
QString FoxVerifier::default_url() {
|
||||||
return QString(FOXVERIFIER_DEFAULT_BASE_URL);
|
return QString(FOXVERIFIER_DEFAULT_BASE_URL);
|
||||||
}
|
}
|
||||||
|
@ -47,8 +47,6 @@ private slots:
|
|||||||
#endif
|
#endif
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
|
||||||
void errorOccurred(QNetworkReply::NetworkError code);
|
void errorOccurred(QNetworkReply::NetworkError code);
|
||||||
#else
|
|
||||||
void obsoleteError();
|
|
||||||
#endif
|
#endif
|
||||||
//signals:
|
//signals:
|
||||||
//void results(QString verify_response);
|
//void results(QString verify_response);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user