56 setWindowModality(Qt::WindowModal);
58 setWindowFlags(Qt::Sheet);
62 setWindowTitle(editor->title());
65 editor->setParent(
this);
68 QVBoxLayout *vlayout =
new QVBoxLayout(
this);
69 vlayout->addWidget(editor);
70 QDialogButtonBox *button_box =
new QDialogButtonBox (
71 QDialogButtonBox::Apply
72 | QDialogButtonBox::Cancel
73 | QDialogButtonBox::Reset,
75 vlayout->addWidget(button_box);
79 &QDialogButtonBox::clicked,
80 [editor, button_box,
this]
81 (QAbstractButton *button)
83 switch(button_box->buttonRole(button))
85 case QDialogButtonBox::RejectRole:
89 case QDialogButtonBox::ResetRole:
92 case QDialogButtonBox::ApplyRole: