- m_dirLister = new DolphinDirLister;
- m_dirLister->setAutoUpdate(true);
- if (parentWidget) {
- m_dirLister->setMainWindow(parentWidget->window());
- }
- m_dirLister->setDelayedMimeTypes(true);
-
- connect(m_dirLister, SIGNAL(completed(KUrl)), this, SLOT(slotCompleted(KUrl)));
- connect(m_dirLister, SIGNAL(canceled(KUrl)), this, SLOT(slotCanceled(KUrl)));
- connect(m_dirLister, SIGNAL(percent(int)), this, SLOT(updateProgress(int)));
- connect(m_dirLister, SIGNAL(errorMessage(QString)), this, SLOT(slotErrorMessage(QString)));
-
- m_dolphinModel = new DolphinModel(this);
- m_dolphinModel->setDirLister(m_dirLister);
-
- m_proxyModel = new DolphinSortFilterProxyModel(this);
- m_proxyModel->setSourceModel(m_dolphinModel);
-
- m_view = new DolphinView(parentWidget, KUrl(), m_proxyModel);