Switch to side-by-side view
--- a/src/qtgui/ssearch_w.cpp +++ b/src/qtgui/ssearch_w.cpp @@ -79,6 +79,15 @@ m_stroketimeout->setSingleShot(true); connect(m_stroketimeout, SIGNAL(timeout()), this, SLOT(timerDone())); m_keystroke = false; +} + +void SSearch::takeFocus() +{ + LOGDEB2(("SSearch: take focus\n")); + queryText->setFocus(Qt::ShortcutFocusReason); + // If the focus was already in the search entry, the text is not selected. + // Do it for consistency + queryText->lineEdit()->selectAll(); } void SSearch::timerDone()