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

Fix compile

parent a5f0dd9f
...@@ -105,14 +105,14 @@ bool KonsoleKalendar::printCalendarList() ...@@ -105,14 +105,14 @@ bool KonsoleKalendar::printCalendarList()
cout << i18n("There are no calendars available.").toLocal8Bit().data() << endl; cout << i18n("There are no calendars available.").toLocal8Bit().data() << endl;
} else { } else {
cout << "--------------------------" << endl; cout << "--------------------------" << endl;
#if QT_VERSION < QT_VERSION_CHECK(5, 12, 0) #if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
auto mimeTypeSet = mimeTypes.toSet(); // set changes by run method intersect auto mimeTypeSet = mimeTypes.toSet(); // set changes by run method intersect
#else #else
auto mimeTypeSet = QSet<QString>(mimeTypes.begin(), mimeTypes.end()); // set changes by run method intersect auto mimeTypeSet = QSet<QString>(mimeTypes.begin(), mimeTypes.end()); // set changes by run method intersect
#endif #endif
foreach (const Akonadi::Collection &collection, collections) { foreach (const Akonadi::Collection &collection, collections) {
const QStringList contentMimeTypes = collection.contentMimeTypes(); const QStringList contentMimeTypes = collection.contentMimeTypes();
#if QT_VERSION < QT_VERSION_CHECK(5, 12, 0) #if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
auto collectionMimeTypeSet = contentMimeTypes.toSet(); auto collectionMimeTypeSet = contentMimeTypes.toSet();
#else #else
auto collectionMimeTypeSet = QSet<QString>(contentMimeTypes.begin(), contentMimeTypes.end()); auto collectionMimeTypeSet = QSet<QString>(contentMimeTypes.begin(), contentMimeTypes.end());
......
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