Commit f80d24b9 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

We depend against qt5.15

parent 6463cde6
Pipeline #176748 passed with stage
in 9 minutes and 31 seconds
......@@ -735,13 +735,8 @@ void MediaPlayListProxyModel::loadPlayListLoaded()
auto newTracks = DataTypes::EntryDataList{};
for (int i = 0; i < d->mLoadPlaylist.mediaCount(); ++i) {
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
newTracks.push_back({{{{DataTypes::ElementTypeRole, ElisaUtils::FileName},
{DataTypes::ResourceRole, d->mLoadPlaylist.media(i).request().url()}}}, {}, {}});
#else
newTracks.push_back({{{{DataTypes::ElementTypeRole, ElisaUtils::FileName},
{DataTypes::ResourceRole, d->mLoadPlaylist.media(i).canonicalUrl()}}}, {}, {}});
#endif
}
enqueue(newTracks, ElisaUtils::ReplacePlayList, ElisaUtils::DoNotTriggerPlay);
......
Supports Markdown
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