Remove support for Qt 5 (#2174)

This commit is contained in:
Seth Flynn 2025-04-18 16:26:55 -04:00 committed by GitHub
commit 3df98dd5e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
42 changed files with 48 additions and 272 deletions

View file

@ -363,16 +363,11 @@ void ResourceFolderModel::onUpdateSucceeded()
auto& new_resources = update_results->resources;
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
auto current_list = m_resources_index.keys();
QSet<QString> current_set(current_list.begin(), current_list.end());
auto new_list = new_resources.keys();
QSet<QString> new_set(new_list.begin(), new_list.end());
#else
QSet<QString> current_set(m_resources_index.keys().toSet());
QSet<QString> new_set(new_resources.keys().toSet());
#endif
applyUpdates(current_set, new_set, new_resources);
}