From ad5d3367c7fef4c3c11188a768f21a2ee2b3c025 Mon Sep 17 00:00:00 2001 From: Felix Ernst Date: Sun, 14 Jun 2020 16:20:02 +0200 Subject: Add an option to use an UrlNavigator in the toolbar instead This commit adds a locationInToolbar KToggleAction to switch between using a location bar to navigate or using a new custom QWidgetAction in the toolbar. A big portion of this MR is refactoring because until now the UrlNavigator was tightly intertwined with the DolphinViewContainer. With this MR an UrlNavigator for controlling a View can be freely connected or disconnected with a single method call. A DolphinUrlNavigator class is created in the process which contains all Dolphin-specific UrlNavigator code which did previously reside in the DolphinViewContainer class. Other application parts that belong to UrlNavigator-management are also moved here. --- src/dolphintabwidget.h | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/dolphintabwidget.h') diff --git a/src/dolphintabwidget.h b/src/dolphintabwidget.h index 1eca71c5d..9cc03f127 100644 --- a/src/dolphintabwidget.h +++ b/src/dolphintabwidget.h @@ -163,13 +163,6 @@ public slots: */ void activatePrevTab(); - /** - * Is invoked if the Places panel got visible/invisible and takes care - * that the places-selector of all views is only shown if the Places panel - * is invisible. - */ - void slotPlacesPanelVisibilityChanged(bool visible); - /** * Is called when the user wants to reopen a previously closed tab from * the recent tabs menu. @@ -231,9 +224,6 @@ private: QPair indexByUrl(const QUrl& url) const; private: - /** Caches the (negated) places panel visibility */ - bool m_placesSelectorVisible; - int m_lastViewedTab; }; -- cgit v1.3