]> cloud.milkyroute.net Git - dolphin.git/commit
[dolphin] Add an action to toggle the searchbar
authorIsmael Asensio <isma.af@mgmail.com>
Sun, 1 Sep 2019 19:59:43 +0000 (21:59 +0200)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Sun, 1 Sep 2019 19:59:43 +0000 (21:59 +0200)
commit3a7586907ed834fb3c09d47e047da305a25374a2
tree9b49c59975b6541ef9c3481609d7ffefb4753b65
parent7f6d49377b3b66da9811d94aa0166872e4f44836
[dolphin] Add an action to toggle the searchbar

Summary:
Make search action toggle the searchbar instead of just launching it.

The search action in dolphin did only bring up the search bar, but to close it again you had to go to the closing button on the same searchbar.
This behavior in inconsistent with other dolphin actions which toggle panels or tools.

BEFORE:
{F7256652}

AFTER:
{F7256862}

BUG: 344617
FIXED-IN: 19.12.0
Closes T8473

Depends on D23075

Test Plan:
- Enable the search mode: the searchbar appears and the toolbar button gets checked
- Press the search button again, and it goes back to normal mode.
- The search button state is coherent with the searchbox
- Coherence is kept when changing to a split view or different tab
- Shorcut <Ctrl-F> does not close the searchbar, but moves the focus to it.

Reviewers: #dolphin, ngraham, #vdg, elvisangelaccio

Reviewed By: ngraham, #vdg

Subscribers: ndavis, felixernst, elvisangelaccio, kfm-devel

Tags: #dolphin

Maniphest Tasks: T8473

Differential Revision: https://phabricator.kde.org/D23232
src/dolphinmainwindow.cpp
src/dolphinmainwindow.h
src/dolphinui.rc
src/dolphinviewcontainer.cpp
src/dolphinviewcontainer.h