Don't register mimetype for diff editor

Task-number: QTCREATORBUG-11624

Change-Id: I9eeeeeb862e335c1a4d5cbd80d0908297ad6d1db
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
jkobus
2014-03-10 13:28:34 +01:00
committed by Jarek Kobus
parent 4bf11c7df6
commit b8046e603d
5 changed files with 4 additions and 8 deletions

View File

@@ -35,9 +35,8 @@
namespace DiffEditor {
DiffEditorDocument::DiffEditorDocument(const QString &mimeType) :
DiffEditorDocument::DiffEditorDocument() :
Core::IDocument(),
m_mimeType(mimeType),
m_diffEditorController(new DiffEditorController(this))
{
setDisplayName(QCoreApplication::translate("DiffEditor", Constants::DIFF_EDITOR_DISPLAY_NAME));
@@ -69,7 +68,7 @@ bool DiffEditorDocument::save(QString *errorString, const QString &fileName, boo
QString DiffEditorDocument::mimeType() const
{
return m_mimeType;
return QString();
}
Core::IDocument::ReloadBehavior DiffEditorDocument::reloadBehavior(ChangeTrigger state, ChangeType type) const