Complete remove the toggle search action.

This commit is contained in:
Akinori MUSHA 2014-11-19 11:46:38 +09:00
parent b1c3814972
commit dd79105baa
5 changed files with 11 additions and 44 deletions

View file

@ -718,24 +718,6 @@ void DatabaseWidget::openSearch()
}
}
void DatabaseWidget::toggleSearch()
{
if (isInSearchMode()) {
if (m_searchUi->searchEdit->hasFocus()) {
closeSearch();
}
else {
m_searchUi->searchEdit->selectAll();
m_searchUi->searchEdit->setFocus();
// make sure the search action is checked again
emitCurrentModeChanged();
}
}
else {
showSearch();
}
}
void DatabaseWidget::closeSearch()
{
Q_ASSERT(m_lastGroup);