diff options
| author | hjk <hjk121@nokiamail.com> | 2014-07-30 16:01:34 +0200 |
|---|---|---|
| committer | hjk <hjk121@nokiamail.com> | 2014-07-31 10:54:49 +0200 |
| commit | f6b48950ed275d8c540e4950f3c2f145de03ae16 (patch) | |
| tree | 9bcbe565ae8da7e0d7da657efab51f4c62752bca /src/plugins/pythoneditor/pythoneditorwidget.cpp | |
| parent | f3a83367d6aced8220e44097840f1e43b2ebd3d2 (diff) | |
| download | qt-creator-f6b48950ed275d8c540e4950f3c2f145de03ae16.tar.gz | |
TextEditor: Re-work comment definition handling
No need for most of the machinery.
Change-Id: I9078174582d83da94c6c7f20282fd3a5f1742911
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'src/plugins/pythoneditor/pythoneditorwidget.cpp')
| -rw-r--r-- | src/plugins/pythoneditor/pythoneditorwidget.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/plugins/pythoneditor/pythoneditorwidget.cpp b/src/plugins/pythoneditor/pythoneditorwidget.cpp index fc69254e9e..3968aff797 100644 --- a/src/plugins/pythoneditor/pythoneditorwidget.cpp +++ b/src/plugins/pythoneditor/pythoneditorwidget.cpp @@ -64,10 +64,6 @@ EditorWidget::EditorWidget(EditorWidget *other) void EditorWidget::ctor() { - m_commentDefinition.multiLineStart.clear(); - m_commentDefinition.multiLineEnd.clear(); - m_commentDefinition.singleLine = QLatin1Char('#'); - setParenthesesMatchingEnabled(true); setMarksVisible(true); setCodeFoldingSupported(true); @@ -75,18 +71,6 @@ void EditorWidget::ctor() new PythonHighlighter(baseTextDocument()); } -EditorWidget::~EditorWidget() -{ -} - -/** - Comments or uncomments selection using Python commenting syntax - */ -void EditorWidget::unCommentSelection() -{ - Utils::unCommentSelection(this, m_commentDefinition); -} - TextEditor::BaseTextEditor *EditorWidget::createEditor() { return new PythonEditor(this); |
