]> cloud.milkyroute.net Git - dolphin.git/commit
Add an option to use an UrlNavigator in the toolbar instead
authorFelix Ernst <fe.a.ernst@gmail.com>
Sun, 14 Jun 2020 14:20:02 +0000 (16:20 +0200)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Mon, 9 Nov 2020 22:49:07 +0000 (23:49 +0100)
commitad5d3367c7fef4c3c11188a768f21a2ee2b3c025
treefa59507fdc29060eba061b776c74c53e57b8b668
parent880766bd56c0331f39ecffaa08974b5117e3d72a
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.
15 files changed:
src/CMakeLists.txt
src/dolphinbookmarkhandler.cpp
src/dolphinmainwindow.cpp
src/dolphinmainwindow.h
src/dolphintabpage.cpp
src/dolphintabwidget.cpp
src/dolphintabwidget.h
src/dolphinui.rc
src/dolphinurlnavigator.cpp [new file with mode: 0644]
src/dolphinurlnavigator.h [new file with mode: 0644]
src/dolphinviewcontainer.cpp
src/dolphinviewcontainer.h
src/settings/dolphin_generalsettings.kcfg
src/views/dolphinurlnavigatorwidgetaction.cpp [new file with mode: 0644]
src/views/dolphinurlnavigatorwidgetaction.h [new file with mode: 0644]