TextItem editor size restoring has been fixed

This commit is contained in:
Arin Alexander
2019-01-19 00:04:01 +03:00
parent 1253d30610
commit d4fb85dafd
2 changed files with 2 additions and 1 deletions

View File

@@ -30,6 +30,7 @@ void ContentEditor::editButtonClicked()
dialog->setWindowTitle(propertyName());
QWidget* editor = dynamic_cast<BaseDesignIntf*>(m_object)->defaultEditor();
dialog->layout()->addWidget(editor);
dialog->resize(editor->size());
connect(editor,SIGNAL(destroyed()),dialog,SLOT(close()));
connect(editor,SIGNAL(destroyed()),this,SIGNAL(editingFinished()));
dialog->exec();