From 288c7db6a7ae804c79d9fe61dcaf7f494a194341 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Thu, 12 Nov 2009 18:58:44 +0000 Subject: 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 --- src/search/dolphinsearchoptionsconfigurator.h | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'src/search/dolphinsearchoptionsconfigurator.h') 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 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; -- cgit v1.3.1