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/dolphinmainwindow.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/dolphinmainwindow.cpp') diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 5c89b77e0..474c65cd7 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -1012,9 +1012,9 @@ void DolphinMainWindow::slotTabMoved(int from, int to) m_tabIndex = m_tabBar->currentIndex(); } -void DolphinMainWindow::slotSearchBoxTextChanged(const QString& text) +void DolphinMainWindow::showSearchOptions() { - m_searchOptionsConfigurator->setVisible(!text.isEmpty()); + m_searchOptionsConfigurator->show(); } void DolphinMainWindow::init() @@ -1098,8 +1098,8 @@ void DolphinMainWindow::init() m_searchBox->setParent(toolBar("searchToolBar")); m_searchBox->show(); - connect(m_searchBox, SIGNAL(textChanged(const QString&)), - this, SLOT(slotSearchBoxTextChanged(const QString&))); + connect(m_searchBox, SIGNAL(requestSearchOptions()), + this, SLOT(showSearchOptions())); stateChanged("new_file"); -- cgit v1.3