┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.h
diff options
context:
space:
mode:
authorFelix Ernst <[email protected]>2020-11-19 21:22:27 +0000
committerElvis Angelaccio <[email protected]>2020-11-19 21:22:27 +0000
commit50ca5af7e0ec460f9f004a3660efa10bb1dd8cb1 (patch)
treef87dde47243cd134a1d106f06e7a2b650cb2edc9 /src/dolphinmainwindow.h
parentf2d2f325b628f8b831cce076c1a5f5dc43ac21ee (diff)
Allow having the UrlNavigators below the tab bar
This commit restores the possibility to have the UrlNavigators below the tab bar. This will happen automatically whenever the UrlNavigator is removed from the toolbar. It is also now again possible to have the toolbar on the side. This option is disabled while the toolbar contains the UrlNavigators. This commit makes no changes to the new default which is having the UrlNavigators in the toolbar but makes sure that upgrading users won't be affected.
Diffstat (limited to 'src/dolphinmainwindow.h')
-rw-r--r--src/dolphinmainwindow.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h
index 29ab6326d..8d5eae344 100644
--- a/src/dolphinmainwindow.h
+++ b/src/dolphinmainwindow.h
@@ -221,6 +221,14 @@ protected:
/** Handles QWhatsThisClickedEvent and passes all others on. */
bool eventFilter(QObject*, QEvent*) override;
+protected slots:
+ /**
+ * Calls the base method KXmlGuiWindow::saveNewToolbarConfig().
+ * Is also used to set toolbar constraints and UrlNavigator position
+ * based on the newly changed toolbar configuration.
+ */
+ void saveNewToolbarConfig() override;
+
private slots:
/**
* Refreshes the views of the main window by recreating them according to
@@ -593,6 +601,11 @@ private:
*/
void updateSplitAction();
+ /**
+ * Sets the window sides the toolbar may be moved to based on toolbar contents.
+ */
+ void updateAllowedToolbarAreas();
+
bool isKompareInstalled() const;
/**