summaryrefslogtreecommitdiff
path: root/src/plugins/pythoneditor
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@digia.com>2014-01-07 14:41:57 +0100
committerEike Ziller <eike.ziller@digia.com>2014-01-08 11:46:11 +0100
commitf9ce335a6dffb2866cfaa6d97c0430bee6e34e22 (patch)
tree31e4af6ae75fb054ae51816014e1a877ae3b5463 /src/plugins/pythoneditor
parent236ea9efb912c90cf3ecd6b03006f40e8da4d5f2 (diff)
downloadqt-creator-f9ce335a6dffb2866cfaa6d97c0430bee6e34e22.tar.gz
Editors: Remove useless parent widget argument from create/duplicate
It was never called with a sensible value anyhow, and only complicates things. Change-Id: I005848700b6c00114d91495670d4a0e15a2d2e64 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/plugins/pythoneditor')
-rw-r--r--src/plugins/pythoneditor/pythoneditor.cpp4
-rw-r--r--src/plugins/pythoneditor/pythoneditor.h2
-rw-r--r--src/plugins/pythoneditor/pythoneditorfactory.cpp4
-rw-r--r--src/plugins/pythoneditor/pythoneditorfactory.h2
4 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/pythoneditor/pythoneditor.cpp b/src/plugins/pythoneditor/pythoneditor.cpp
index f327fd7e9e..26f9b5ffd0 100644
--- a/src/plugins/pythoneditor/pythoneditor.cpp
+++ b/src/plugins/pythoneditor/pythoneditor.cpp
@@ -58,9 +58,9 @@ PythonEditor::~PythonEditor()
{
}
-Core::IEditor *PythonEditor::duplicate(QWidget *parent)
+Core::IEditor *PythonEditor::duplicate()
{
- EditorWidget *widget = new EditorWidget(parent);
+ EditorWidget *widget = new EditorWidget();
widget->duplicateFrom(editorWidget());
TextEditor::TextEditorSettings::initializeEditor(widget);
diff --git a/src/plugins/pythoneditor/pythoneditor.h b/src/plugins/pythoneditor/pythoneditor.h
index ed1eff5e8e..a53d031abe 100644
--- a/src/plugins/pythoneditor/pythoneditor.h
+++ b/src/plugins/pythoneditor/pythoneditor.h
@@ -46,7 +46,7 @@ public:
virtual ~PythonEditor();
bool duplicateSupported() const { return true; }
- Core::IEditor *duplicate(QWidget *parent);
+ Core::IEditor *duplicate();
Core::Id id() const;
diff --git a/src/plugins/pythoneditor/pythoneditorfactory.cpp b/src/plugins/pythoneditor/pythoneditorfactory.cpp
index acf42d7f8a..c549646405 100644
--- a/src/plugins/pythoneditor/pythoneditorfactory.cpp
+++ b/src/plugins/pythoneditor/pythoneditorfactory.cpp
@@ -55,9 +55,9 @@ EditorFactory::EditorFactory(QObject *parent)
| TextEditor::TextEditorActionHandler::UnCollapseAll);
}
-Core::IEditor *EditorFactory::createEditor(QWidget *parent)
+Core::IEditor *EditorFactory::createEditor()
{
- EditorWidget *widget = new EditorWidget(parent);
+ EditorWidget *widget = new EditorWidget();
TextEditor::TextEditorSettings::initializeEditor(widget);
return widget->editor();
diff --git a/src/plugins/pythoneditor/pythoneditorfactory.h b/src/plugins/pythoneditor/pythoneditorfactory.h
index 0dcca8fbc2..50d8f925c1 100644
--- a/src/plugins/pythoneditor/pythoneditorfactory.h
+++ b/src/plugins/pythoneditor/pythoneditorfactory.h
@@ -45,7 +45,7 @@ public:
/**
Creates and initializes new editor widget
*/
- Core::IEditor *createEditor(QWidget *parent);
+ Core::IEditor *createEditor();
};
} // namespace Internal