diff options
| author | Eric Armbruster <[email protected]> | 2023-09-06 06:34:13 +0200 |
|---|---|---|
| committer | Eric Armbruster <[email protected]> | 2023-09-09 15:45:26 +0000 |
| commit | a85863befd616fe86669ac363d74fa7f466ca523 (patch) | |
| tree | 3f8a87f6a3b13bb935e0332679922a0ce17a76f7 /src/settings | |
| parent | f900801540af7d8c54b75ba7476ebed05529aa59 (diff) | |
Add open in split view action
This action is shown only if a single folder is selected. The action
opens the selected folder in the inactive split view (and opens the
split view if necessary).
FEATURE: 465500
Diffstat (limited to 'src/settings')
| -rw-r--r-- | src/settings/contextmenu/contextmenusettingspage.cpp | 4 | ||||
| -rw-r--r-- | src/settings/dolphin_contextmenusettings.kcfg | 4 | ||||
| -rw-r--r-- | src/settings/dolphinsettingsdialog.cpp | 1 |
3 files changed, 9 insertions, 0 deletions
diff --git a/src/settings/contextmenu/contextmenusettingspage.cpp b/src/settings/contextmenu/contextmenusettingspage.cpp index ea780550a..23ddfba31 100644 --- a/src/settings/contextmenu/contextmenusettingspage.cpp +++ b/src/settings/contextmenu/contextmenusettingspage.cpp @@ -122,6 +122,8 @@ bool ContextMenuSettingsPage::entryVisible(const QString &id) return ContextMenuSettings::showOpenInNewTab(); } else if (id == "open_in_new_window") { return ContextMenuSettings::showOpenInNewWindow(); + } else if (id == "open_in_split_view") { + return ContextMenuSettings::showOpenInSplitView(); } else if (id == "copy_location") { return ContextMenuSettings::showCopyLocation(); } else if (id == "duplicate") { @@ -148,6 +150,8 @@ void ContextMenuSettingsPage::setEntryVisible(const QString &id, bool visible) ContextMenuSettings::setShowOpenInNewTab(visible); } else if (id == "open_in_new_window") { ContextMenuSettings::setShowOpenInNewWindow(visible); + } else if (id == "open_in_split_view") { + return ContextMenuSettings::setShowOpenInSplitView(visible); } else if (id == "copy_location") { ContextMenuSettings::setShowCopyLocation(visible); } else if (id == "duplicate") { diff --git a/src/settings/dolphin_contextmenusettings.kcfg b/src/settings/dolphin_contextmenusettings.kcfg index 63ca079af..6e45d9bcd 100644 --- a/src/settings/dolphin_contextmenusettings.kcfg +++ b/src/settings/dolphin_contextmenusettings.kcfg @@ -30,6 +30,10 @@ <label>Show 'Open in New Window' in context menu.</label> <default>true</default> </entry> + <entry name="ShowOpenInSplitView" type="Bool"> + <label>Show 'Open In Split View' in context menu.</label> + <default>true</default> + </entry> <entry name="ShowCopyLocation" type="Bool"> <label>Show 'Copy Location' in context menu.</label> <default>true</default> diff --git a/src/settings/dolphinsettingsdialog.cpp b/src/settings/dolphinsettingsdialog.cpp index 3a2ad31e9..d05d5a814 100644 --- a/src/settings/dolphinsettingsdialog.cpp +++ b/src/settings/dolphinsettingsdialog.cpp @@ -68,6 +68,7 @@ DolphinSettingsDialog::DolphinSettingsDialog(const QUrl &url, QWidget *parent, K QStringLiteral("view_mode"), QStringLiteral("open_in_new_tab"), QStringLiteral("open_in_new_window"), + QStringLiteral("open_in_split_view"), QStringLiteral("copy_location"), QStringLiteral("duplicate"), QStringLiteral("open_terminal_here"), |
