Commit 14f916f7 authored by mae's avatar mae
Browse files

close tab order chain the the embedded find toolbar

parent 9b59df0b
......@@ -481,3 +481,16 @@ void FindToolBar::openFind()
m_currentDocumentFind->highlightAll(getFindText(), m_plugin->findFlags());
selectFindText();
}
bool FindToolBar::focusNextPrevChild(bool next)
{
// close tab order change
if (next && m_ui.replaceAllButton->hasFocus())
m_ui.findEdit->setFocus(Qt::TabFocusReason);
else if (!next && m_ui.findEdit->hasFocus())
m_ui.replaceAllButton->setFocus(Qt::TabFocusReason);
else
return QToolBar::focusNextPrevChild(next);
return true;
}
......@@ -79,6 +79,9 @@ private slots:
void updateActions();
void findFlagsChanged();
protected:
bool focusNextPrevChild(bool next);
private:
bool setFocusToCurrentFindSupport();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment