diff options
| author | Peter Penz <[email protected]> | 2012-05-10 22:40:51 +0200 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2012-05-10 22:45:12 +0200 |
| commit | 4fad8f8f530211839f431819031327275240f7f6 (patch) | |
| tree | 04530ad1ff2ef82776846caec1a2565bee52c0c5 /src/search/dolphinsearchbox.h | |
| parent | b983b7d2daa98c17a4263971ce2abf5b3b6fa84f (diff) | |
Reimplement search-filters
BUG: 270721
BUG: 280377
FIXED-IN: 4.9.0
Diffstat (limited to 'src/search/dolphinsearchbox.h')
| -rw-r--r-- | src/search/dolphinsearchbox.h | 32 |
1 files changed, 5 insertions, 27 deletions
diff --git a/src/search/dolphinsearchbox.h b/src/search/dolphinsearchbox.h index 2b4632bb1..ee9987a38 100644 --- a/src/search/dolphinsearchbox.h +++ b/src/search/dolphinsearchbox.h @@ -46,16 +46,6 @@ class DolphinSearchBox : public QWidget { Q_OBJECT public: - enum SearchContext { - SearchFileName, - SearchContent - }; - - enum SearchLocation { - SearchFromHere, - SearchEverywhere - }; - explicit DolphinSearchBox(QWidget* parent = 0); virtual ~DolphinSearchBox(); @@ -104,11 +94,9 @@ protected: signals: /** - * Is emitted when a searching should be triggered - * and provides the text that should be used as input - * for searching. + * Is emitted when a searching should be triggered. */ - void search(const QString& text); + void searchRequest(); /** * Is emitted when the user has changed a character of @@ -119,28 +107,18 @@ signals: void returnPressed(const QString& text); /** - * Is emitted if the search location has been changed by the user. - */ - void searchLocationChanged(SearchLocation location); - - /** - * Is emitted if the search context has been changed by the user. - */ - void searchContextChanged(SearchContext context); - - /** * Emitted as soon as the search box should get closed. */ void closeRequest(); private slots: - void emitSearchSignal(); - void slotSearchLocationChanged(); - void slotSearchContextChanged(); + void emitSearchRequest(); + void emitCloseRequest(); void slotConfigurationChanged(); void slotSearchTextChanged(const QString& text); void slotReturnPressed(const QString& text); void slotFacetsButtonToggled(); + void slotFacetChanged(); private: void initButton(QToolButton* button); |
