diff options
| author | Peter Penz <[email protected]> | 2010-10-10 16:13:24 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2010-10-10 16:13:24 +0000 |
| commit | 717a665c4e6c0c9455ed46163216e7525f36ff87 (patch) | |
| tree | 003290f7efd9c5095ecfc7ee47f284979d0068dc /src/search/dolphinsearchbox.h | |
| parent | 35f8c9d7b077ffff65ad23a5b1813a72465f5bd2 (diff) | |
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
Diffstat (limited to 'src/search/dolphinsearchbox.h')
| -rw-r--r-- | src/search/dolphinsearchbox.h | 8 |
1 files changed, 7 insertions, 1 deletions
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<AbstractSearchFilterWidget*> m_filterWidgets; KUrl m_searchPath; + + QTimer* m_startSearchTimer; }; #endif |
