From c144701c28aa02a1fd9e1a24460ae9e5178ed069 Mon Sep 17 00:00:00 2001 From: Ismael Asensio Date: Sun, 13 Oct 2019 17:21:11 +0200 Subject: Hide search extra options when not available Summary: Hide the search extra options when they are not available, because the current location is not indexed or Baloo is not enabled. The button is disabled and shows a tooltip to provide feedback of why it's not available. Depends on D24478 {F7531893} CCBUG: 396898 FEATURE: 318580 FEATURE: 408680 FIXED-IN: 19.11.80 Test Plan: - `Ctrl-F` on a non-indexed location - `balooctl disable` and `Ctrl-F` on an indexed location On both cases the extra options are not shown, the button is disabled and the reason is shown in the tooltip The user selection is remembered between indexed locations. Reviewers: #dolphin, elvisangelaccio, meven, ngraham Reviewed By: meven Subscribers: kfm-devel Tags: #dolphin Differential Revision: https://phabricator.kde.org/D24446 --- src/search/dolphinsearchbox.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/search/dolphinsearchbox.h') diff --git a/src/search/dolphinsearchbox.h b/src/search/dolphinsearchbox.h index 9ccd50b83..e70317450 100644 --- a/src/search/dolphinsearchbox.h +++ b/src/search/dolphinsearchbox.h @@ -158,6 +158,7 @@ private: */ void fromBalooSearchUrl(const QUrl& url); + void setFacetsVisible(bool visible); void updateFacetsToggleButton(); bool isIndexingEnabled() const; -- cgit v1.3.1