summaryrefslogtreecommitdiff
path: root/src/plugins/pythoneditor/pythoneditor.cpp
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2014-09-01 16:16:44 +0200
committerhjk <hjk121@nokiamail.com>2014-09-02 10:06:54 +0200
commit6775e623eedf510b65e7541d8696c46d30ee8d23 (patch)
treeeb6f42505601e6946dc99ab3cd14f0cf46e2a215 /src/plugins/pythoneditor/pythoneditor.cpp
parentb9f861f1cb4d595348f02c249b51d4fbf9e3a460 (diff)
downloadqt-creator-6775e623eedf510b65e7541d8696c46d30ee8d23.tar.gz
TextEditor: Move comment definitions back to *Widget
Only used there, and avoids back-links to editors. Change-Id: I81206057ce89d42aef7febb840cf9e44b869df0e Reviewed-by: Christian Stenger <christian.stenger@digia.com>
Diffstat (limited to 'src/plugins/pythoneditor/pythoneditor.cpp')
-rw-r--r--src/plugins/pythoneditor/pythoneditor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/pythoneditor/pythoneditor.cpp b/src/plugins/pythoneditor/pythoneditor.cpp
index 96be07bc01..103165e283 100644
--- a/src/plugins/pythoneditor/pythoneditor.cpp
+++ b/src/plugins/pythoneditor/pythoneditor.cpp
@@ -64,7 +64,6 @@ public:
{
addContext(Constants::C_PYTHONEDITOR_ID);
setDuplicateSupported(true);
- setCommentStyle(Utils::CommentDefinition::HashStyle);
}
bool open(QString *errorString, const QString &fileName, const QString &realFileName)
@@ -111,6 +110,7 @@ PythonEditorFactory::PythonEditorFactory()
setEditorCreator([]() { return new PythonEditor; });
setIndenterCreator([]() { return new PythonIndenter; });
setSyntaxHighlighterCreator([]() { return new PythonHighlighter; });
+ setCommentStyle(Utils::CommentDefinition::HashStyle);
}
} // namespace Internal