forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -28,6 +28,9 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include "diffeditorfile.h"
|
||||
#include "diffeditorconstants.h"
|
||||
|
||||
#include <QCoreApplication>
|
||||
|
||||
namespace DiffEditor {
|
||||
namespace Internal {
|
||||
@@ -39,6 +42,7 @@ DiffEditorFile::DiffEditorFile(const QString &mimeType, QObject *parent) :
|
||||
m_mimeType(mimeType),
|
||||
m_modified(false)
|
||||
{
|
||||
setDisplayName(QCoreApplication::translate("DiffEditor", Constants::DIFF_EDITOR_DISPLAY_NAME));
|
||||
}
|
||||
|
||||
void DiffEditorFile::setModified(bool modified)
|
||||
|
||||
Reference in New Issue
Block a user