diff options
| author | Peter Penz <[email protected]> | 2009-11-10 21:44:24 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-11-10 21:44:24 +0000 |
| commit | d9e3139e505857e1a590f324fc7516ca589169aa (patch) | |
| tree | 73d03696ab01844be71ef04b028a1bc54be8d9e2 /src/search/dolphinsearchbox.cpp | |
| parent | a97291c90d244c15d3112f33a1261c2c3f134258 (diff) | |
* Show the search options as soon as the search bar gains focus.
* Allow the user to manually close the options.
* Added tooltip descriptions.
svn path=/trunk/KDE/kdebase/apps/; revision=1047281
Diffstat (limited to 'src/search/dolphinsearchbox.cpp')
| -rw-r--r-- | src/search/dolphinsearchbox.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/search/dolphinsearchbox.cpp b/src/search/dolphinsearchbox.cpp index d1a97d9a2..e2fd81a6f 100644 --- a/src/search/dolphinsearchbox.cpp +++ b/src/search/dolphinsearchbox.cpp @@ -284,9 +284,10 @@ bool DolphinSearchBox::eventFilter(QObject* watched, QEvent* event) // Postpone the creation of the search completer until // the search box is used. This decreases the startup time // of Dolphin. - Q_ASSERT(m_completer == 0); - m_completer = new DolphinSearchCompleter(m_searchInput); - m_searchInput->removeEventFilter(this); + if (m_completer == 0) { + m_completer = new DolphinSearchCompleter(m_searchInput); + } + emit requestSearchOptions(); } return QWidget::eventFilter(watched, event); |
