forked from qt-creator/qt-creator
Fix context of Locator input
- In the main window, the locator input (actually the status bar) visually feels like being part of the mode widget, so give it its context. - In extra editor windows, the whole editor window should have "editor manager" context, so that is also active for the locator input. Task-number: QTCREATORBUG-20626 Task-number: QTCREATORBUG-20071 Change-Id: Ib68d6a8177446572ea59c3cc057eca0706173e11 Reviewed-by: Xing Xiong Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -181,7 +181,7 @@ void DesignMode::currentEditorChanged(IEditor *editor)
|
||||
|
||||
if (!mimeEditorAvailable) {
|
||||
setActiveContext(Context());
|
||||
if (ModeManager::currentMode() == id())
|
||||
if (ModeManager::currentModeId() == id())
|
||||
ModeManager::activateMode(Constants::MODE_EDIT);
|
||||
setEnabled(false);
|
||||
d->m_currentEditor = nullptr;
|
||||
@@ -214,7 +214,7 @@ void DesignMode::setActiveContext(const Context &context)
|
||||
if (d->m_activeContext == context)
|
||||
return;
|
||||
|
||||
if (ModeManager::currentMode() == id())
|
||||
if (ModeManager::currentModeId() == id())
|
||||
ICore::updateAdditionalContexts(d->m_activeContext, context);
|
||||
|
||||
d->m_activeContext = context;
|
||||
|
||||
Reference in New Issue
Block a user