added DeleteOnClose attribute at NameEdit dialog.

This commit is contained in:
HuYingzhuo(hugo/hyzboy) 2022-07-07 21:34:18 +08:00
parent 833ae63cd4
commit dc118dec7d

View File

@ -10,6 +10,7 @@ namespace hgl
{
NameEdit::NameEdit(const QString &hint_text,const QString &str)
{
setAttribute(Qt::WA_DeleteOnClose);
setModal(true);
QVBoxLayout *layout=new QVBoxLayout(this);