- connect(view, &DolphinView::modeChanged,
- this, &DolphinViewActionHandler::updateViewActions);
- connect(view, &DolphinView::previewsShownChanged,
- this, &DolphinViewActionHandler::slotPreviewsShownChanged);
- connect(view, &DolphinView::sortOrderChanged,
- this, &DolphinViewActionHandler::slotSortOrderChanged);
- connect(view, &DolphinView::sortFoldersFirstChanged,
- this, &DolphinViewActionHandler::slotSortFoldersFirstChanged);
- connect(view, &DolphinView::sortHiddenLastChanged,
- this, &DolphinViewActionHandler::slotSortHiddenLastChanged);
- connect(view, &DolphinView::visibleRolesChanged,
- this, &DolphinViewActionHandler::slotVisibleRolesChanged);
- connect(view, &DolphinView::groupedSortingChanged,
- this, &DolphinViewActionHandler::slotGroupedSortingChanged);
- connect(view, &DolphinView::hiddenFilesShownChanged,
- this, &DolphinViewActionHandler::slotHiddenFilesShownChanged);
- connect(view, &DolphinView::sortRoleChanged,
- this, &DolphinViewActionHandler::slotSortRoleChanged);
- connect(view, &DolphinView::zoomLevelChanged,
- this, &DolphinViewActionHandler::slotZoomLevelChanged);
- connect(view, &DolphinView::writeStateChanged,
- this, &DolphinViewActionHandler::slotWriteStateChanged);
- connect(view, &DolphinView::selectionModeRequested,
- this, [this]() { Q_EMIT setSelectionMode(true); });
- connect(view, &DolphinView::selectionChanged,
- this, &DolphinViewActionHandler::slotSelectionChanged);
+ connect(view, &DolphinView::modeChanged, this, &DolphinViewActionHandler::updateViewActions);
+ connect(view, &DolphinView::previewsShownChanged, this, &DolphinViewActionHandler::slotPreviewsShownChanged);
+ connect(view, &DolphinView::sortOrderChanged, this, &DolphinViewActionHandler::slotSortOrderChanged);
+ connect(view, &DolphinView::sortFoldersFirstChanged, this, &DolphinViewActionHandler::slotSortFoldersFirstChanged);
+ connect(view, &DolphinView::sortHiddenLastChanged, this, &DolphinViewActionHandler::slotSortHiddenLastChanged);
+ connect(view, &DolphinView::visibleRolesChanged, this, &DolphinViewActionHandler::slotVisibleRolesChanged);
+ connect(view, &DolphinView::groupedSortingChanged, this, &DolphinViewActionHandler::slotGroupedSortingChanged);
+ connect(view, &DolphinView::hiddenFilesShownChanged, this, &DolphinViewActionHandler::slotHiddenFilesShownChanged);
+ connect(view, &DolphinView::sortRoleChanged, this, &DolphinViewActionHandler::slotSortRoleChanged);
+ connect(view, &DolphinView::zoomLevelChanged, this, &DolphinViewActionHandler::slotZoomLevelChanged);
+ connect(view, &DolphinView::writeStateChanged, this, &DolphinViewActionHandler::slotWriteStateChanged);
+ slotWriteStateChanged(view->isFolderWritable());
+ connect(view, &DolphinView::selectionModeChangeRequested, this, [this](bool enabled) {
+ Q_EMIT selectionModeChangeTriggered(enabled);
+ });
+ connect(view, &DolphinView::selectionChanged, this, &DolphinViewActionHandler::slotSelectionChanged);