Commit 15ec82ff authored by Jonathan Riddell's avatar Jonathan Riddell 🏄
Browse files

fix compile with Qt < 5.15

parent 41d6bda0
......@@ -287,7 +287,11 @@ void JournaldNetworkAnalyzer::sendRequest(RequestType requestType)
m_reply = m_networkManager.get(request);
connect(m_reply, &QNetworkReply::finished, this, &JournaldNetworkAnalyzer::httpFinished);
connect(m_reply, &QNetworkReply::readyRead, this, &JournaldNetworkAnalyzer::httpReadyRead);
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
connect(m_reply, QOverload<QNetworkReply::NetworkError>::of(&QNetworkReply::error), this, &JournaldNetworkAnalyzer::httpError);
#else
connect(m_reply, QOverload<QNetworkReply::NetworkError>::of(&QNetworkReply::errorOccurred), this, &JournaldNetworkAnalyzer::httpError);
#endif
}
void JournaldNetworkAnalyzer::updateStatus(const QString &status)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment