diff options
author | hjk <hjk121@nokiamail.com> | 2014-02-24 15:03:25 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@digia.com> | 2014-02-25 10:36:25 +0100 |
commit | 6c6f47f86ccc8603da6199c1aaa1434a7379664d (patch) | |
tree | 4e835032a42dcdf277e8f82fd1d4765098275818 /src/plugins/pythoneditor/pythoneditor.cpp | |
parent | 9035a9b77a215d63b094eb43ef5dd100a261e5de (diff) | |
download | qt-creator-6c6f47f86ccc8603da6199c1aaa1434a7379664d.tar.gz |
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>
Diffstat (limited to 'src/plugins/pythoneditor/pythoneditor.cpp')
-rw-r--r-- | src/plugins/pythoneditor/pythoneditor.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/plugins/pythoneditor/pythoneditor.cpp b/src/plugins/pythoneditor/pythoneditor.cpp index 346c0f4019..72ef8d99a9 100644 --- a/src/plugins/pythoneditor/pythoneditor.cpp +++ b/src/plugins/pythoneditor/pythoneditor.cpp @@ -50,6 +50,7 @@ namespace Internal { PythonEditor::PythonEditor(EditorWidget *editorWidget) :BaseTextEditor(editorWidget) { + setId(Constants::C_PYTHONEDITOR_ID); setContext(Core::Context(Constants::C_PYTHONEDITOR_ID, TextEditor::Constants::C_TEXTEDITOR)); } @@ -65,14 +66,6 @@ Core::IEditor *PythonEditor::duplicate() return widget->editor(); } -/** - * @returns Unique editor class identifier, that is Constants::C_PYTHONEDITOR_ID - */ -Core::Id PythonEditor::id() const -{ - return Core::Id(Constants::C_PYTHONEDITOR_ID); -} - bool PythonEditor::open(QString *errorString, const QString &fileName, const QString &realFileName) |