From: Ahmad Samir Date: Thu, 5 May 2022 20:15:14 +0000 (+0200) Subject: Fix building kfileitemmodeltest with KF6 X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/d661bb1a33eb8cd3d9e0b7bee637a8fde00b2f56 Fix building kfileitemmodeltest with KF6 - Fix kio_version.h include - Explicitly create a QSet for QCOMPARE --- diff --git a/src/tests/kfileitemmodeltest.cpp b/src/tests/kfileitemmodeltest.cpp index e9bb7efb7..f2560d9fc 100644 --- a/src/tests/kfileitemmodeltest.cpp +++ b/src/tests/kfileitemmodeltest.cpp @@ -14,7 +14,7 @@ #include #include -#include +#include #include "kitemviews/kfileitemmodel.h" @@ -2076,7 +2076,7 @@ void KFileItemModelTest::testInsertAfterExpand() QVERIFY(m_model->isExpanded(0)); QVERIFY(itemsInsertedSpy.wait()); QCOMPARE(m_model->count(), 2); // 3 items: "a/", "a/a/" - QCOMPARE(m_model->expandedDirectories(), {QUrl::fromLocalFile(m_testDir->path() + "/a")}); + QCOMPARE(m_model->expandedDirectories(), QSet({QUrl::fromLocalFile(m_testDir->path() + "/a")})); QCOMPARE(itemsInsertedSpy.count(), 1); {