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()
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");