Drop Qt 5 support
Qt 6 has been available for almost 4 years. Qt 5 is no longer officially supported by Qt for opensource, it's time to drop Qt 5.
This commit is contained in:
@@ -408,11 +408,7 @@ void AlbumCoverLoader::LoadRemoteImageFinished(QNetworkReply *reply, TaskPtr tas
|
||||
reply->deleteLater();
|
||||
|
||||
QVariant redirect = reply->attribute(QNetworkRequest::RedirectionTargetAttribute);
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||
if (redirect.isValid() && redirect.metaType().id() == QMetaType::QUrl) {
|
||||
#else
|
||||
if (redirect.isValid() && redirect.type() == QVariant::Url) {
|
||||
#endif
|
||||
if (task->redirects++ >= kMaxRedirects) {
|
||||
ProcessTask(task);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user