Commit d661bb1a authored by Ahmad Samir's avatar Ahmad Samir
Browse files

Fix building kfileitemmodeltest with KF6

- Fix kio_version.h include
- Explicitly create a QSet for QCOMPARE
parent 49560f92
......@@ -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);
{
......
Supports Markdown
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