Commit 05941a52 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

Add "Show statusbar" menu entry in "Settings"

Makes this setting more accessible and makes it consistent with other
KDE applications. Since Dolphin has a separate status bar on each view
container and doesn't use kxmlgui's statusbar, we don't get this menu
entry automatically.
parent c6f82aa3
Pipeline #204583 passed with stage
in 8 minutes and 37 seconds
......@@ -1802,6 +1802,15 @@ void DolphinMainWindow::setupActions()
"contain mostly the same commands and configuration options."));
connect(showMenuBar, &KToggleAction::triggered, // Fixes #286822
this, &DolphinMainWindow::toggleShowMenuBar, Qt::QueuedConnection);
KToggleAction* showStatusBar = KStandardAction::showStatusbar(nullptr, nullptr, actionCollection());
connect(GeneralSettings::self(), &GeneralSettings::showStatusBarChanged, showStatusBar, &KToggleAction::setChecked);
connect(showStatusBar, &KToggleAction::triggered, this, [this](bool checked) {
KStandardAction::keyBindings(this, &DolphinMainWindow::slotKeyBindings, actionCollection());
KStandardAction::preferences(this, &DolphinMainWindow::editSettings, actionCollection());
......@@ -10,6 +10,9 @@
<kcfgfile name="dolphinrc"/>
<signal name="sortingChoiceChanged" />
<signal name="splitViewChanged" />
<signal name="showStatusBarChanged">
<argument type="Bool">showStatusBar</argument>
<group name="General">
<entry name="EditableUrl" type="Bool">
<label>Should the URL be editable for the user</label>
......@@ -106,6 +109,7 @@
<entry name="ShowStatusBar" type="Bool">
<label>Show the statusbar</label>
<emit signal="showStatusBarChanged" />
<entry name="ShowZoomSlider" type="Bool">
<label>Show zoom slider in the statusbar</label>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment