connect(m_controller, SIGNAL(urlChanged(const KUrl&)),
this, SIGNAL(urlChanged(const KUrl&)));
- connect(m_controller, SIGNAL(requestUrlChange(const KUrl&)),
- this, SLOT(slotRequestUrlChange(const KUrl&)));
connect(m_controller, SIGNAL(requestContextMenu(const QPoint&, const QList<QAction*>&)),
this, SLOT(openContextMenu(const QPoint&, const QList<QAction*>&)));
}
}
-void DolphinView::slotRequestUrlChange(const KUrl& url)
-{
- emit requestUrlChange(url);
- m_controller->setUrl(url);
-}
-
void DolphinView::slotDirListerCompleted()
{
if (!m_expanderActive) {
KDirLister* dirLister = m_viewAccessor.dirLister();
dirLister->openUrl(url, reload ? KDirLister::Reload : KDirLister::NoFlags);
-
- KDirLister* rootDirLister = m_viewAccessor.rootDirLister();
- if (dirLister != rootDirLister) {
- // In the case of the column view the root directory lister can be different. Assure
- // that it gets synchronized (clients from DolphinView are not aware that internally
- // different directory listers are used).
- rootDirLister->openUrl(url, reload ? KDirLister::Reload : KDirLister::NoFlags);
- }
}
void DolphinView::applyViewProperties()
return (m_columnsContainer != 0) ? m_columnsContainer->rootUrl() : KUrl();
}
-KDirLister* DolphinView::ViewAccessor::rootDirLister() const
-{
- return static_cast<DolphinModel*>(m_proxyModel->sourceModel())->dirLister();
-}
-
bool DolphinView::ViewAccessor::supportsCategorizedSorting() const
{
return m_iconsView != 0;