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/dolphinmainwindow.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/dolphinmainwindow.cpp')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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"); |
