┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorAhmad Samir <[email protected]>2022-05-05 22:15:14 +0200
committerAhmad Samir <[email protected]>2022-05-31 14:25:13 +0000
commitd661bb1a33eb8cd3d9e0b7bee637a8fde00b2f56 (patch)
tree4a8dc49a9a179b33a72dab8c8faea9eb65b7e23c /src/tests
parent49560f921d4dc4d9ec11c565b80891d68514464a (diff)
Fix building kfileitemmodeltest with KF6
- Fix kio_version.h include - Explicitly create a QSet for QCOMPARE
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/kfileitemmodeltest.cpp4
1 files changed, 2 insertions, 2 deletions
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 <KDirLister>
#include <kio/job.h>
-#include <KIO/kio_version.h>
+#include <kio_version.h>
#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>({QUrl::fromLocalFile(m_testDir->path() + "/a")}));
QCOMPARE(itemsInsertedSpy.count(), 1);
{