close tab order chain the the embedded find toolbar

This commit is contained in:
mae
2008-12-12 11:22:39 +01:00
parent 9b59df0bcc
commit 14f916f7b2
2 changed files with 16 additions and 0 deletions

View File

@@ -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;
}

View File

@@ -79,6 +79,9 @@ private slots:
void updateActions();
void findFlagsChanged();
protected:
bool focusNextPrevChild(bool next);
private:
bool setFocusToCurrentFindSupport();