forked from qt-creator/qt-creator
Core: Make IEditor::id a value member and adjust users
Change-Id: I47e457c4a1821c515cd8a740d27bfe005a0c09e6 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -183,11 +183,6 @@ IEditor *QmlJSEditor::duplicate()
|
||||
return newEditor->editor();
|
||||
}
|
||||
|
||||
Id QmlJSEditor::id() const
|
||||
{
|
||||
return Constants::C_QMLJSEDITOR_ID;
|
||||
}
|
||||
|
||||
bool QmlJSEditor::open(QString *errorString, const QString &fileName, const QString &realFileName)
|
||||
{
|
||||
bool b = TextEditor::BaseTextEditor::open(errorString, fileName, realFileName);
|
||||
|
||||
@@ -50,6 +50,7 @@ namespace Internal {
|
||||
QmlJSEditor::QmlJSEditor(QmlJSTextEditorWidget *editor)
|
||||
: BaseTextEditor(editor)
|
||||
{
|
||||
setId(Constants::C_QMLJSEDITOR_ID);
|
||||
m_context.add(Constants::C_QMLJSEDITOR_ID);
|
||||
m_context.add(TextEditor::Constants::C_TEXTEDITOR);
|
||||
m_context.add(ProjectExplorer::Constants::LANG_QMLJS);
|
||||
|
||||
@@ -48,7 +48,6 @@ public:
|
||||
|
||||
bool duplicateSupported() const { return true; }
|
||||
Core::IEditor *duplicate();
|
||||
Core::Id id() const;
|
||||
bool open(QString *errorString, const QString &fileName, const QString &realFileName);
|
||||
bool isDesignModePreferred() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user