diff options
author | Eike Ziller <eike.ziller@digia.com> | 2013-07-04 22:25:15 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@digia.com> | 2013-07-10 17:26:15 +0200 |
commit | 113c5600c909791ddfea3d424a41d982dcdda6b7 (patch) | |
tree | 33638a66c8cd6f6f9c376d1aba52e8fca862a887 /src/plugins/bazaar/commiteditor.cpp | |
parent | 81eba6f9843179804ed2e53d490e718b12c04044 (diff) | |
download | qt-creator-113c5600c909791ddfea3d424a41d982dcdda6b7.tar.gz |
Move displayName from IEditor to IDocument
The display name is not editor instance specific, but belongs to the
document.
Change-Id: I3c936f04a86e10e6ca30063d85036d85b4b5880e
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
Diffstat (limited to 'src/plugins/bazaar/commiteditor.cpp')
-rw-r--r-- | src/plugins/bazaar/commiteditor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/bazaar/commiteditor.cpp b/src/plugins/bazaar/commiteditor.cpp index b41a04012f..ea7fef2372 100644 --- a/src/plugins/bazaar/commiteditor.cpp +++ b/src/plugins/bazaar/commiteditor.cpp @@ -30,6 +30,7 @@ #include "branchinfo.h" #include "bazaarcommitwidget.h" +#include <coreplugin/idocument.h> #include <vcsbase/submitfilemodel.h> #include <QDebug> @@ -40,7 +41,7 @@ CommitEditor::CommitEditor(const VcsBase::VcsBaseSubmitEditorParameters *paramet : VcsBase::VcsBaseSubmitEditor(parameters, new BazaarCommitWidget(parent)), m_fileModel(0) { - setDisplayName(tr("Commit Editor")); + document()->setDisplayName(tr("Commit Editor")); } BazaarCommitWidget *CommitEditor::commitWidget() |