From d2ec7d80d92952262b164068b52f63e39e259f7c Mon Sep 17 00:00:00 2001 From: hjk Date: Mon, 18 Aug 2014 17:49:04 +0200 Subject: TextEditor: Merge the two sets of *EditorWidget constructors Change-Id: I45d87d0be722ac36d64af222f03f8cb76242c9df Reviewed-by: Christian Stenger --- src/plugins/pythoneditor/pythoneditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/pythoneditor/pythoneditor.cpp') 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(editorWidget())); + PythonEditorWidget *widget = new PythonEditorWidget(editorWidget()->textDocumentPtr()); TextEditor::TextEditorSettings::initializeEditor(widget); return widget->editor(); } -- cgit v1.2.1