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:
@@ -46,9 +46,9 @@ DiffEditorFactory::DiffEditorFactory(QObject *parent)
|
||||
addMimeType(QLatin1String(Constants::DIFF_EDITOR_MIMETYPE));
|
||||
}
|
||||
|
||||
Core::IEditor *DiffEditorFactory::createEditor(QWidget *parent)
|
||||
Core::IEditor *DiffEditorFactory::createEditor()
|
||||
{
|
||||
DiffEditorWidget *editorWidget = new DiffEditorWidget(parent);
|
||||
DiffEditorWidget *editorWidget = new DiffEditorWidget();
|
||||
DiffEditor *editor = new DiffEditor(editorWidget);
|
||||
return editor;
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ class DiffEditorFactory : public Core::IEditorFactory
|
||||
public:
|
||||
explicit DiffEditorFactory(QObject *parent);
|
||||
|
||||
Core::IEditor *createEditor(QWidget *parent);
|
||||
Core::IEditor *createEditor();
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
@@ -46,9 +46,9 @@ DiffShowEditorFactory::DiffShowEditorFactory(QObject *parent)
|
||||
setMimeTypes(QStringList() << QLatin1String(Constants::DIFF_EDITOR_MIMETYPE));
|
||||
}
|
||||
|
||||
Core::IEditor *DiffShowEditorFactory::createEditor(QWidget *parent)
|
||||
Core::IEditor *DiffShowEditorFactory::createEditor()
|
||||
{
|
||||
DiffEditorWidget *editorWidget = new DiffEditorWidget(parent);
|
||||
DiffEditorWidget *editorWidget = new DiffEditorWidget();
|
||||
DiffShowEditor *editor = new DiffShowEditor(editorWidget);
|
||||
return editor;
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ class DiffShowEditorFactory : public Core::IEditorFactory
|
||||
public:
|
||||
explicit DiffShowEditorFactory(QObject *parent);
|
||||
|
||||
Core::IEditor *createEditor(QWidget *parent);
|
||||
Core::IEditor *createEditor();
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user