Commit 060831d3 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix some qt6 compile error

parent 1b06c4bf
Pipeline #147795 passed with stage
in 8 minutes and 6 seconds
......@@ -85,7 +85,11 @@ void TrashJobPrivate::selectResult(KJob *job)
void TrashJobPrivate::setAttribute(const Akonadi::Collection::List &list)
{
Q_Q(TrashJob);
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QVectorIterator<Collection> i(list);
#else
QListIterator<Collection> i(list);
#endif
while (i.hasNext()) {
const Collection &col = i.next();
auto eda = new EntityDeletedAttribute();
......
......@@ -247,7 +247,11 @@ void TrashRestoreJobPrivate::collectionsReceived(const Akonadi::Collection::List
void TrashRestoreJobPrivate::removeAttribute(const Akonadi::Collection::List &list)
{
Q_Q(TrashRestoreJob);
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QVectorIterator<Collection> i(list);
#else
QListIterator<Collection> i(list);
#endif
while (i.hasNext()) {
Collection col = i.next();
col.removeAttribute<EntityDeletedAttribute>();
......
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