diff options
author | Eike Ziller <eike.ziller@qt.io> | 2018-07-10 15:49:50 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2018-08-09 08:55:25 +0000 |
commit | 8fa449126cf89c083f6ee53c3780313d45e853e1 (patch) | |
tree | c4c7a8cdc859fb8cf3fd3044db9deb9e6fb45354 /src/plugins/coreplugin/editormanager | |
parent | 735aeb3e38c5ae14505b555c602700c971034aa2 (diff) | |
download | qt-creator-8fa449126cf89c083f6ee53c3780313d45e853e1.tar.gz |
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>
Diffstat (limited to 'src/plugins/coreplugin/editormanager')
-rw-r--r-- | src/plugins/coreplugin/editormanager/editorwindow.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/coreplugin/editormanager/editorwindow.cpp b/src/plugins/coreplugin/editormanager/editorwindow.cpp index 28cf1f9525..83b8707131 100644 --- a/src/plugins/coreplugin/editormanager/editorwindow.cpp +++ b/src/plugins/coreplugin/editormanager/editorwindow.cpp @@ -29,6 +29,7 @@ #include "editormanager_p.h" #include <aggregation/aggregate.h> +#include <coreplugin/coreconstants.h> #include <coreplugin/icontext.h> #include <coreplugin/icore.h> #include <coreplugin/locator/locatormanager.h> @@ -67,7 +68,10 @@ EditorWindow::EditorWindow(QWidget *parent) : resize(QSize(800, 600)); static int windowId = 0; - ICore::registerWindow(this, Context(Id("EditorManager.ExternalWindow.").withSuffix(++windowId))); + + ICore::registerWindow(this, + Context(Id("EditorManager.ExternalWindow.").withSuffix(++windowId), + Constants::C_EDITORMANAGER)); connect(m_area, &EditorArea::windowTitleNeedsUpdate, this, &EditorWindow::updateWindowTitle); |