forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ public:
|
||||
virtual ~PythonEditor();
|
||||
|
||||
bool duplicateSupported() const { return true; }
|
||||
Core::IEditor *duplicate(QWidget *parent);
|
||||
Core::IEditor *duplicate();
|
||||
|
||||
Core::Id id() const;
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -45,7 +45,7 @@ public:
|
||||
/**
|
||||
Creates and initializes new editor widget
|
||||
*/
|
||||
Core::IEditor *createEditor(QWidget *parent);
|
||||
Core::IEditor *createEditor();
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user