diff options
Diffstat (limited to 'src/plugins/coreplugin/editormanager/editorwindow.cpp')
-rw-r--r-- | src/plugins/coreplugin/editormanager/editorwindow.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/plugins/coreplugin/editormanager/editorwindow.cpp b/src/plugins/coreplugin/editormanager/editorwindow.cpp index a25e828101..c6036de2b0 100644 --- a/src/plugins/coreplugin/editormanager/editorwindow.cpp +++ b/src/plugins/coreplugin/editormanager/editorwindow.cpp @@ -30,6 +30,7 @@ #include "editorwindow.h" #include "editorarea.h" +#include "editormanager_p.h" #include <coreplugin/icontext.h> #include <coreplugin/icore.h> @@ -55,6 +56,10 @@ EditorWindow::EditorWindow(QWidget *parent) : static int windowId = 0; ICore::registerWindow(this, Context(Id("EditorManager.ExternalWindow.").withSuffix(++windowId))); + + connect(m_area, &EditorArea::windowTitleNeedsUpdate, + this, &EditorWindow::updateWindowTitle); + updateWindowTitle(); } EditorArea *EditorWindow::editorArea() const @@ -62,5 +67,10 @@ EditorArea *EditorWindow::editorArea() const return m_area; } +void EditorWindow::updateWindowTitle() +{ + EditorManagerPrivate::updateWindowTitleForDocument(m_area->currentDocument(), this); +} + } // Internal } // Core |