forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/3.2'
Conflicts: qtcreator.pri qtcreator.qbs src/plugins/android/androidglobal.h Change-Id: I3367bf2ea47c088989175dddeed2210294346f4c
This commit is contained in:
@@ -349,8 +349,6 @@ void FindToolBar::updateToolBar()
|
||||
bool replaceEnabled = enabled && m_currentDocumentFind->supportsReplace();
|
||||
bool showAllControls = canShowAllControls(replaceEnabled);
|
||||
|
||||
m_goToCurrentFindAction->setEnabled(enabled);
|
||||
|
||||
m_findNextAction->setEnabled(enabled);
|
||||
m_findPreviousAction->setEnabled(enabled);
|
||||
|
||||
@@ -615,9 +613,11 @@ void FindToolBar::updateFlagMenus()
|
||||
m_preserveCaseAction->setEnabled((supportedFlags & FindPreserveCase) && !regexp && replaceEnabled);
|
||||
}
|
||||
|
||||
bool FindToolBar::setFocusToCurrentFindSupport()
|
||||
void FindToolBar::setFocusToCurrentFindSupport()
|
||||
{
|
||||
return m_currentDocumentFind->setFocusToCurrentFindSupport();
|
||||
if (!m_currentDocumentFind->setFocusToCurrentFindSupport())
|
||||
if (QWidget *w = focusWidget())
|
||||
w->clearFocus();
|
||||
}
|
||||
|
||||
void FindToolBar::hideAndResetFocus()
|
||||
|
||||
Reference in New Issue
Block a user