mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
Fix building kfileitemmodeltest with KF6
- Fix kio_version.h include - Explicitly create a QSet for QCOMPARE
This commit is contained in:
parent
49560f921d
commit
d661bb1a33
|
@ -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);
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue