]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/tests/testbase.cpp
DolphinTreeViewTest: Add unit test for bug 259656 (multiple file
[dolphin.git] / src / tests / testbase.cpp
index dbe4ee5de6af1cd7c91976582d1ae36a29a5cb7d..db71fa48c4f0e3b58e8aa0149deea75ba7fc3801 100644 (file)
@@ -39,22 +39,12 @@ TestBase::TestBase()
     Q_ASSERT(m_tempDir->exists());
     m_path = m_tempDir->name();
     m_dir = new QDir(m_path);
-    m_dirLister = new DolphinDirLister();
-    m_dirLister->setAutoUpdate(true);
-    m_dolphinModel = new DolphinModel();
-    m_dolphinModel->setDirLister(m_dirLister);
-    m_proxyModel = new DolphinSortFilterProxyModel(0);
-    m_proxyModel->setSourceModel(m_dolphinModel);
-    m_proxyModel->setFilterCaseSensitivity(Qt::CaseInsensitive);
-    m_view = new DolphinView(0, KUrl(m_path), m_proxyModel);
+    m_view = new DolphinView(KUrl(m_path), 0);
 }
 
 TestBase::~TestBase()
 {
     delete m_view;
-    delete m_proxyModel;
-    // m_dolphinModel owns m_dirLister -> do not delete it here!
-    delete m_dolphinModel;
     delete m_dir;
     delete m_tempDir;
 }