summaryrefslogtreecommitdiff
path: root/src/plugins/pythoneditor/pythoneditor.cpp
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2014-08-18 17:49:04 +0200
committerhjk <hjk121@nokiamail.com>2014-08-19 09:19:33 +0200
commitd2ec7d80d92952262b164068b52f63e39e259f7c (patch)
treee94901bd52bc8ee96f7c8685633dab25d0bb6d59 /src/plugins/pythoneditor/pythoneditor.cpp
parent2c5231b46881009625350cd5fe7383f12a323fa7 (diff)
downloadqt-creator-d2ec7d80d92952262b164068b52f63e39e259f7c.tar.gz
TextEditor: Merge the two sets of *EditorWidget constructors
Change-Id: I45d87d0be722ac36d64af222f03f8cb76242c9df 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 196091d480..f7a85c828b 100644
--- a/src/plugins/pythoneditor/pythoneditor.cpp
+++ b/src/plugins/pythoneditor/pythoneditor.cpp
@@ -58,7 +58,7 @@ PythonEditor::PythonEditor(PythonEditorWidget *editorWidget)
Core::IEditor *PythonEditor::duplicate()
{
- PythonEditorWidget *widget = new PythonEditorWidget(qobject_cast<PythonEditorWidget *>(editorWidget()));
+ PythonEditorWidget *widget = new PythonEditorWidget(editorWidget()->textDocumentPtr());
TextEditor::TextEditorSettings::initializeEditor(widget);
return widget->editor();
}