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();
QDialogButtonBox * mButtonBox
QgsDialog(QWidget *parent=nullptr, Qt::WindowFlags fl=QgsGuiUtils::ModalDialogFlags, QDialogButtonBox::StandardButtons buttons=QDialogButtonBox::Close, Qt::Orientation orientation=Qt::Horizontal)
Constructor for QgsDialog.
QVBoxLayout * layout()
Returns the central layout. Widgets added to it must have this dialog as parent.