]> cloud.milkyroute.net Git - dolphin.git/commitdiff
kfileitemmodeltest: Include KIO/SimpleJob header instead of relying on compat code
authorAlexander Lohnau <alexander.lohnau@gmx.de>
Wed, 27 Dec 2023 05:57:31 +0000 (06:57 +0100)
committerAlexander Lohnau <alexander.lohnau@gmx.de>
Wed, 27 Dec 2023 05:57:31 +0000 (06:57 +0100)
Amends 3f92ac800c5e52d0a5622367ff8ffe8cbbdfa184

src/tests/kfileitemmodeltest.cpp

index 973b9c08c7fcb8396af01f185d3b48a77d9c3d9f..fad825dc018b48f7208ee9f7bc73b8b3f28fd2f7 100644 (file)
@@ -13,7 +13,7 @@
 #include <QTimer>
 
 #include <KDirLister>
-#include <kio/job.h>
+#include <KIO/SimpleJob>
 
 #include "kitemviews/kfileitemmodel.h"
 #include "testdir.h"
@@ -1756,10 +1756,10 @@ void KFileItemModelTest::collapseParentOfHiddenItems()
     // Set a name filter that matches nothing -> nothing should remain.
     m_model->setNameFilter("xyz");
     QCOMPARE(itemsRemovedSpy.count(), 1);
-    QCOMPARE(m_model->count(), 0); //Everything is hidden
+    QCOMPARE(m_model->count(), 0); // Everything is hidden
     QCOMPARE(itemsInModel(), QStringList());
 
-    //Filter by the file names. Folder "d" will be hidden since it was collapsed
+    // Filter by the file names. Folder "d" will be hidden since it was collapsed
     m_model->setNameFilter("1");
     QCOMPARE(itemsRemovedSpy.count(), 1); // nothing was removed, itemsRemovedSpy count will remain the same:
     QCOMPARE(m_model->count(), 6); // 6 items: "a/", "a/b/", "a/b/c", "a/b/c/1", "a/b/1", "a/1"