forked from qt-creator/qt-creator
close tab order chain the the embedded find toolbar
This commit is contained in:
@@ -481,3 +481,16 @@ void FindToolBar::openFind()
|
|||||||
m_currentDocumentFind->highlightAll(getFindText(), m_plugin->findFlags());
|
m_currentDocumentFind->highlightAll(getFindText(), m_plugin->findFlags());
|
||||||
selectFindText();
|
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 updateActions();
|
||||||
void findFlagsChanged();
|
void findFlagsChanged();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
bool focusNextPrevChild(bool next);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool setFocusToCurrentFindSupport();
|
bool setFocusToCurrentFindSupport();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user