diff options
| author | Peter Penz <[email protected]> | 2009-11-12 18:58:44 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-11-12 18:58:44 +0000 |
| commit | 288c7db6a7ae804c79d9fe61dcaf7f494a194341 (patch) | |
| tree | 15c409a826951d27e920f391b7849dfaf962e3dc /src/search/dolphinsearchoptionsconfigurator.h | |
| parent | 408d94ac5766f543b433f492b37fb3ca1a6d8d84 (diff) | |
Show some default search configurations, so that the user is able to adjust queries in a faster way (similar to a defaceted interface).
svn path=/trunk/KDE/kdebase/apps/; revision=1048109
Diffstat (limited to 'src/search/dolphinsearchoptionsconfigurator.h')
| -rw-r--r-- | src/search/dolphinsearchoptionsconfigurator.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/search/dolphinsearchoptionsconfigurator.h b/src/search/dolphinsearchoptionsconfigurator.h index b66ab340d..d384f5296 100644 --- a/src/search/dolphinsearchoptionsconfigurator.h +++ b/src/search/dolphinsearchoptionsconfigurator.h @@ -23,6 +23,7 @@ #include <QWidget> class KComboBox; +class SearchCriterionSelector; class QPushButton; class QVBoxLayout; @@ -37,12 +38,11 @@ public: DolphinSearchOptionsConfigurator(QWidget* parent = 0); virtual ~DolphinSearchOptionsConfigurator(); +protected: + virtual void showEvent(QShowEvent* event); + private slots: - /** - * Adds a new search description selector to the bottom - * of the layout. - */ - void addSelector(); + void slotAddSelectorButtonClicked(); void removeCriterion(); @@ -58,6 +58,14 @@ private slots: void saveQuery(); private: + /** + * Adds the new search description selector to the bottom + * of the layout. + */ + void addSelector(SearchCriterionSelector* selector); + +private: + bool m_initialized; KComboBox* m_searchFromBox; KComboBox* m_searchWhatBox; QPushButton* m_addSelectorButton; |
