- m_view = new DolphinView(url, this);
- connect(m_view, &DolphinView::urlChanged,
- m_urlNavigator, &KUrlNavigator::setLocationUrl);
- connect(m_view, &DolphinView::urlChanged,
- m_messageWidget, &KMessageWidget::hide);
- 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_urlNavigator, &KUrlNavigator::urlAboutToBeChanged,
- this, &DolphinViewContainer::slotUrlNavigatorLocationAboutToBeChanged);
- connect(m_urlNavigator, &KUrlNavigator::urlChanged,
- this, &DolphinViewContainer::slotUrlNavigatorLocationChanged);
- connect(m_urlNavigator, &KUrlNavigator::urlSelectionRequested,
- this, &DolphinViewContainer::slotUrlSelectionRequested);
- connect(m_urlNavigator, &KUrlNavigator::returnPressed,
- this, &DolphinViewContainer::slotReturnPressed);
- connect(m_urlNavigator, &KUrlNavigator::urlsDropped, this, [=](const QUrl &destination, QDropEvent *event) {
- m_view->dropUrls(destination, event, m_urlNavigator->dropWidget());
- });