From d9e3139e505857e1a590f324fc7516ca589169aa Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Tue, 10 Nov 2009 21:44:24 +0000 Subject: * 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 --- src/search/dolphinsearchbox.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/search/dolphinsearchbox.cpp') 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); -- cgit v1.3