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:
@@ -57,9 +57,9 @@ FormEditorFactory::FormEditorFactory()
|
||||
Core::FileIconProvider::registerIconOverlayForSuffix(":/formeditor/images/qt_ui.png", "ui");
|
||||
}
|
||||
|
||||
Core::IEditor *FormEditorFactory::createEditor(QWidget *parent)
|
||||
Core::IEditor *FormEditorFactory::createEditor()
|
||||
{
|
||||
const EditorData data = FormEditorW::instance()->createEditor(parent);
|
||||
const EditorData data = FormEditorW::instance()->createEditor();
|
||||
if (data.formWindowEditor) {
|
||||
Core::InfoBarEntry info(Core::Id(Constants::INFO_READ_ONLY),
|
||||
tr("This file can only be edited in <b>Design</b> mode."));
|
||||
|
||||
Reference in New Issue
Block a user