21 QDialogButtonBox::StandardButtons buttons,
22 Qt::Orientation orientation )
23 : QDialog( parent, fl )
26 mButtonBox =
new QDialogButtonBox( buttons, orientation,
this );
27 connect(
mButtonBox, &QDialogButtonBox::accepted,
this, &QDialog::accept );
28 connect(
mButtonBox, &QDialogButtonBox::rejected,
this, &QDialog::reject );
32 if ( orientation == Qt::Horizontal )
33 layout =
new QVBoxLayout();
35 layout =
new QHBoxLayout();