- connect(m_view, &DolphinView::urlChanged,
- m_urlNavigator, &DolphinUrlNavigator::setLocationUrl);
- connect(m_urlNavigator, &DolphinUrlNavigator::urlChanged,
- this, &DolphinViewContainer::slotUrlNavigatorLocationChanged);
- connect(m_view, &DolphinView::writeStateChanged,
- this, &DolphinViewContainer::writeStateChanged);
- connect(m_view, &DolphinView::requestItemInfo,
- this, &DolphinViewContainer::showItemInfo);
- connect(m_view, &DolphinView::itemActivated,
- this, &DolphinViewContainer::slotItemActivated);
- connect(m_view, &DolphinView::itemsActivated,
- this, &DolphinViewContainer::slotItemsActivated);
- connect(m_view, &DolphinView::redirection,
- this, &DolphinViewContainer::redirect);
- connect(m_view, &DolphinView::directoryLoadingStarted,
- this, &DolphinViewContainer::slotDirectoryLoadingStarted);
- connect(m_view, &DolphinView::directoryLoadingCompleted,
- this, &DolphinViewContainer::slotDirectoryLoadingCompleted);
- connect(m_view, &DolphinView::directoryLoadingCanceled,
- this, &DolphinViewContainer::slotDirectoryLoadingCanceled);
- connect(m_view, &DolphinView::itemCountChanged,
- this, &DolphinViewContainer::delayedStatusBarUpdate);
- connect(m_view, &DolphinView::directoryLoadingProgress,
- this, &DolphinViewContainer::updateDirectoryLoadingProgress);
- connect(m_view, &DolphinView::directorySortingProgress,
- this, &DolphinViewContainer::updateDirectorySortingProgress);
- connect(m_view, &DolphinView::selectionChanged,
- this, &DolphinViewContainer::delayedStatusBarUpdate);
- connect(m_view, &DolphinView::errorMessage,
- this, &DolphinViewContainer::showErrorMessage);
- connect(m_view, &DolphinView::urlIsFileError,
- this, &DolphinViewContainer::slotUrlIsFileError);
- connect(m_view, &DolphinView::activated,
- this, &DolphinViewContainer::activate);
-
- connect(m_view, &DolphinView::directoryLoadingCompleted, this, [this]() {
- m_emptyTrashButton->setVisible(m_view->url().scheme() == QLatin1String("trash"));
- });
+ connect(m_view, &DolphinView::urlChanged, m_urlNavigator.get(), &DolphinUrlNavigator::setLocationUrl);
+ connect(m_urlNavigator.get(), &DolphinUrlNavigator::urlChanged, this, &DolphinViewContainer::slotUrlNavigatorLocationChanged);
+ connect(m_urlNavigator.get(), &DolphinUrlNavigator::urlAboutToBeChanged, this, &DolphinViewContainer::slotUrlNavigatorLocationAboutToBeChanged);
+ connect(m_urlNavigator.get(), &DolphinUrlNavigator::urlSelectionRequested, this, &DolphinViewContainer::slotUrlSelectionRequested);
+ connect(m_view, &DolphinView::writeStateChanged, this, &DolphinViewContainer::writeStateChanged);
+ connect(m_view, &DolphinView::requestItemInfo, this, &DolphinViewContainer::showItemInfo);
+ connect(m_view, &DolphinView::itemActivated, this, &DolphinViewContainer::slotItemActivated);
+ connect(m_view, &DolphinView::fileMiddleClickActivated, this, &DolphinViewContainer::slotfileMiddleClickActivated);
+ connect(m_view, &DolphinView::itemsActivated, this, &DolphinViewContainer::slotItemsActivated);
+ connect(m_view, &DolphinView::redirection, this, &DolphinViewContainer::redirect);
+ connect(m_view, &DolphinView::directoryLoadingStarted, this, &DolphinViewContainer::slotDirectoryLoadingStarted);
+ connect(m_view, &DolphinView::directoryLoadingCompleted, this, &DolphinViewContainer::slotDirectoryLoadingCompleted);
+ connect(m_view, &DolphinView::directoryLoadingCanceled, this, &DolphinViewContainer::slotDirectoryLoadingCanceled);
+ connect(m_view, &DolphinView::itemCountChanged, this, &DolphinViewContainer::delayedStatusBarUpdate);
+ connect(m_view, &DolphinView::selectionChanged, this, &DolphinViewContainer::delayedStatusBarUpdate);
+ connect(m_view, &DolphinView::errorMessage, this, &DolphinViewContainer::slotErrorMessageFromView);
+ connect(m_view, &DolphinView::urlIsFileError, this, &DolphinViewContainer::slotUrlIsFileError);
+ connect(m_view, &DolphinView::activated, this, &DolphinViewContainer::activate);
+ connect(m_view, &DolphinView::hiddenFilesShownChanged, this, &DolphinViewContainer::slotHiddenFilesShownChanged);
+ connect(m_view, &DolphinView::sortHiddenLastChanged, this, &DolphinViewContainer::slotSortHiddenLastChanged);
+ connect(m_view, &DolphinView::currentDirectoryRemoved, this, &DolphinViewContainer::slotCurrentDirectoryRemoved);