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

GIT_SILENT: time to increase qt version as kf5-5.77 will depend against it.

parent c96d3c66
Pipeline #44635 skipped
......@@ -33,7 +33,7 @@ set(LIBKLEO_LIB_VERSION "5.16.40")
set(GRANTLEETHEME_LIB_VERSION "5.16.40")
set(GRANTLEE_LIB_VERSION "5.2")
set(QT_REQUIRED_VERSION "5.13.0")
set(QT_REQUIRED_VERSION "5.14.0")
find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED Widgets Test)
########### Find packages ###########
find_package(KF5KIO ${KF5_MIN_VERSION} CONFIG REQUIRED)
......
......@@ -39,12 +39,8 @@ bool CollectionFilterModel::filterAcceptsRow(int row, const QModelIndex &parent)
}
if (!mContentMimeTypes.isEmpty()) {
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
const QSet<QString> contentMimeTypes = collection.contentMimeTypes().toSet();
#else
const auto collectionMimeTypesSet = collection.contentMimeTypes();
const QSet<QString> contentMimeTypes = QSet<QString>(collectionMimeTypesSet.begin(), collectionMimeTypesSet.end());
#endif
accepted = accepted && contentMimeTypes.intersects(mContentMimeTypes);
}
......
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