void DolphinMainWindow::goBack(Qt::MouseButtons buttons)
{
// The default case (left button pressed) is handled in goBack().
- if(buttons == Qt::MidButton) {
+ if (buttons == Qt::MidButton) {
KUrlNavigator* urlNavigator = activeViewContainer()->urlNavigator();
openNewTab(urlNavigator->historyUrl(urlNavigator->historyIndex() + 1));
}
void DolphinMainWindow::goForward(Qt::MouseButtons buttons)
{
// The default case (left button pressed) is handled in goForward().
- if(buttons == Qt::MidButton) {
+ if (buttons == Qt::MidButton) {
KUrlNavigator* urlNavigator = activeViewContainer()->urlNavigator();
openNewTab(urlNavigator->historyUrl(urlNavigator->historyIndex() - 1));
}
void DolphinMainWindow::goUp(Qt::MouseButtons buttons)
{
// The default case (left button pressed) is handled in goUp().
- if(buttons == Qt::MidButton) {
+ if (buttons == Qt::MidButton) {
openNewTab(activeViewContainer()->url().upUrl());
}
}
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");