QNetworkRequest::Http2AllowedAttribute require Qt 5.15

This commit is contained in:
Jonas Kvinge
2020-12-20 07:42:14 +01:00
parent 32ae3cd567
commit 30cb0b1cae
2 changed files with 2 additions and 2 deletions

View File

@@ -83,7 +83,7 @@ bool MusixmatchCoverProvider::StartSearch(const QString &artist, const QString &
#else
req.setAttribute(QNetworkRequest::FollowRedirectsAttribute, true);
#endif
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
req.setAttribute(QNetworkRequest::Http2AllowedAttribute, false);
#endif
QNetworkReply *reply = network_->get(req);

View File

@@ -80,7 +80,7 @@ bool MusixmatchLyricsProvider::StartSearch(const QString &artist, const QString
#else
req.setAttribute(QNetworkRequest::FollowRedirectsAttribute, true);
#endif
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
req.setAttribute(QNetworkRequest::Http2AllowedAttribute, false);
#endif
QNetworkReply *reply = network_->get(req);