forked from qt-creator/qt-creator
Fix id of diff editor according to change b772001c
Task-number: QTCREATORBUG-9960 Change-Id: I233b697254e863b7c4389c0041104b82e97bd340 Reviewed-by: hjk <hjk121@nokiamail.com> Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -39,19 +39,11 @@ namespace DiffEditor {
|
||||
namespace Internal {
|
||||
|
||||
DiffEditorFactory::DiffEditorFactory(QObject *parent)
|
||||
: IEditorFactory(parent),
|
||||
m_mimeTypes(QLatin1String(Constants::DIFF_EDITOR_MIMETYPE))
|
||||
: IEditorFactory(parent)
|
||||
{
|
||||
}
|
||||
|
||||
Core::Id DiffEditorFactory::id() const
|
||||
{
|
||||
return Constants::DIFF_EDITOR_ID;
|
||||
}
|
||||
|
||||
QString DiffEditorFactory::displayName() const
|
||||
{
|
||||
return qApp->translate("DiffEditorFactory", Constants::DIFF_EDITOR_DISPLAY_NAME);
|
||||
setId(Constants::DIFF_EDITOR_ID);
|
||||
setDisplayName(qApp->translate("DiffEditorFactory", Constants::DIFF_EDITOR_DISPLAY_NAME));
|
||||
addMimeType(QLatin1String(Constants::DIFF_EDITOR_MIMETYPE));
|
||||
}
|
||||
|
||||
Core::IEditor *DiffEditorFactory::createEditor(QWidget *parent)
|
||||
@@ -61,10 +53,5 @@ Core::IEditor *DiffEditorFactory::createEditor(QWidget *parent)
|
||||
return editor;
|
||||
}
|
||||
|
||||
QStringList DiffEditorFactory::mimeTypes() const
|
||||
{
|
||||
return m_mimeTypes;
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace DiffEditor
|
||||
|
@@ -47,13 +47,7 @@ class DiffEditorFactory : public Core::IEditorFactory
|
||||
public:
|
||||
explicit DiffEditorFactory(QObject *parent);
|
||||
|
||||
QStringList mimeTypes() const;
|
||||
Core::IEditor *createEditor(QWidget *parent);
|
||||
Core::Id id() const;
|
||||
QString displayName() const;
|
||||
|
||||
private:
|
||||
const QStringList m_mimeTypes;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
@@ -39,19 +39,11 @@ namespace DiffEditor {
|
||||
namespace Internal {
|
||||
|
||||
DiffShowEditorFactory::DiffShowEditorFactory(QObject *parent)
|
||||
: IEditorFactory(parent),
|
||||
m_mimeTypes(QLatin1String(Constants::DIFF_EDITOR_MIMETYPE))
|
||||
: IEditorFactory(parent)
|
||||
{
|
||||
}
|
||||
|
||||
Core::Id DiffShowEditorFactory::id() const
|
||||
{
|
||||
return Constants::DIFF_SHOW_EDITOR_ID;
|
||||
}
|
||||
|
||||
QString DiffShowEditorFactory::displayName() const
|
||||
{
|
||||
return qApp->translate("DiffEditorFactory", Constants::DIFF_SHOW_EDITOR_DISPLAY_NAME);
|
||||
setId(Constants::DIFF_SHOW_EDITOR_ID);
|
||||
setDisplayName(qApp->translate("DiffEditorFactory", Constants::DIFF_SHOW_EDITOR_DISPLAY_NAME));
|
||||
setMimeTypes(QStringList() << QLatin1String(Constants::DIFF_EDITOR_MIMETYPE));
|
||||
}
|
||||
|
||||
Core::IEditor *DiffShowEditorFactory::createEditor(QWidget *parent)
|
||||
@@ -61,10 +53,5 @@ Core::IEditor *DiffShowEditorFactory::createEditor(QWidget *parent)
|
||||
return editor;
|
||||
}
|
||||
|
||||
QStringList DiffShowEditorFactory::mimeTypes() const
|
||||
{
|
||||
return m_mimeTypes;
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace DiffEditor
|
||||
|
@@ -47,13 +47,7 @@ class DiffShowEditorFactory : public Core::IEditorFactory
|
||||
public:
|
||||
explicit DiffShowEditorFactory(QObject *parent);
|
||||
|
||||
QStringList mimeTypes() const;
|
||||
Core::IEditor *createEditor(QWidget *parent);
|
||||
Core::Id id() const;
|
||||
QString displayName() const;
|
||||
|
||||
private:
|
||||
const QStringList m_mimeTypes;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
Reference in New Issue
Block a user