┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/search/dolphinsearchbox.h
diff options
context:
space:
mode:
authorNathaniel Graham <[email protected]>2017-10-24 13:10:41 -0600
committerNathaniel Graham <[email protected]>2017-11-01 09:00:48 -0600
commit64cfc43b97e0216caf8b7b71dd5168eaedb3068c (patch)
treeb61727740d09431b6f7cdbb940ef1ba9730a277a /src/search/dolphinsearchbox.h
parent5454283008f26d377a6403861a3cdd7992dbbd38 (diff)
Make Saved Search feature discoverable
Summary: FEATURE: 269332 Make Dolphin's Saved Search feature discoverable by adding a button inside the search field. The button only becomes enabled when there is a valid search term. When pushed, it saves the search to the Places panel, providing a visible-by-default way to do this to complement the existing implementation that is only visible in the context menu. Also harmonized the label text so that it's consistent no matter how you create a saved search (button or context menu) Test Plan: Tested in KDE Neon. Works great: {F5449508} Reviewers: #dolphin, broulik, dfaure, markg, emateli, elvisangelaccio Reviewed By: #dolphin, markg, emateli, elvisangelaccio Subscribers: anthonyfieroni, markg, emateli, elvisangelaccio, cfeck, #dolphin Tags: #dolphin Differential Revision: https://phabricator.kde.org/D8454
Diffstat (limited to 'src/search/dolphinsearchbox.h')
-rw-r--r--src/search/dolphinsearchbox.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/search/dolphinsearchbox.h b/src/search/dolphinsearchbox.h
index 5063c2bf5..f1ea49091 100644
--- a/src/search/dolphinsearchbox.h
+++ b/src/search/dolphinsearchbox.h
@@ -139,6 +139,7 @@ private slots:
void slotReturnPressed();
void slotFacetsButtonToggled();
void slotFacetChanged();
+ void slotSearchSaved();
private:
void initButton(QToolButton* button);
@@ -167,6 +168,7 @@ private:
QLabel* m_searchLabel;
QLineEdit* m_searchInput;
+ QAction* m_saveSearchAction;
QScrollArea* m_optionsScrollArea;
QToolButton* m_fileNameButton;
QToolButton* m_contentButton;