From 717a665c4e6c0c9455ed46163216e7525f36ff87 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 10 Oct 2010 16:13:24 +0000 Subject: Automatically start the searching if the user did not change the search-text for at least a second. svn path=/trunk/KDE/kdebase/apps/; revision=1184510 --- src/search/dolphinsearchbox.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/search/dolphinsearchbox.h') diff --git a/src/search/dolphinsearchbox.h b/src/search/dolphinsearchbox.h index f0ec73def..f88fc43f4 100644 --- a/src/search/dolphinsearchbox.h +++ b/src/search/dolphinsearchbox.h @@ -71,7 +71,7 @@ protected: signals: /** - * Is emitted when the user pressed Return or Enter + * Is emitted when a searching should be triggered * and provides the text that should be used as input * for searching. */ @@ -83,6 +83,8 @@ signals: */ void searchTextChanged(const QString& text); + void returnPressed(const QString& text); + /** * Emitted as soon as the search box should get closed. */ @@ -91,6 +93,8 @@ signals: private slots: void emitSearchSignal(); void slotConfigurationChanged(); + void slotSearchTextChanged(const QString& text); + void slotReturnPressed(const QString& text); void setFilterWidgetsVisible(bool visible); private: @@ -127,6 +131,8 @@ private: QList m_filterWidgets; KUrl m_searchPath; + + QTimer* m_startSearchTimer; }; #endif -- cgit v1.3.1