]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/tests/kstandarditemmodeltest.cpp
Fix a regression preventing previews to be resized
[dolphin.git] / src / tests / kstandarditemmodeltest.cpp
index ea65cc4ce654fe0d49bce7dcc7d387b692113476..daa8f1e56ceccee72506ddb895bf46c5e6451df7 100644 (file)
@@ -18,6 +18,8 @@
  *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA            *
  ***************************************************************************/
 
+#include "dolphindebug.h"
+
 #include "kitemviews/kstandarditem.h"
 #include "kitemviews/kstandarditemmodel.h"
 
@@ -49,7 +51,7 @@ void KStandardItemModelTest::init()
 void KStandardItemModelTest::cleanup()
 {
     delete m_model;
-    m_model = 0;
+    m_model = nullptr;
 }
 
 void KStandardItemModelTest::testNewItems()
@@ -112,6 +114,6 @@ bool KStandardItemModelTest::isModelConsistent() const
     return true;
 }
 
-QTEST_MAIN(KStandardItemModelTest)
+QTEST_GUILESS_MAIN(KStandardItemModelTest)
 
 #include "kstandarditemmodeltest.moc"