22 QDialogButtonBox::StandardButtons buttons,
23 Qt::Orientation orientation )
24 : QDialog( parent, fl )
27 mButtonBox =
new QDialogButtonBox( buttons, orientation,
this );
28 connect(
mButtonBox, &QDialogButtonBox::accepted,
this, &QDialog::accept );
29 connect(
mButtonBox, &QDialogButtonBox::rejected,
this, &QDialog::reject );
32 QBoxLayout *
layout =
nullptr;
33 if ( orientation == Qt::Horizontal )
34 layout =
new QVBoxLayout();
36 layout =
new QHBoxLayout();
QgsDialog(QWidget *parent=nullptr, Qt::WindowFlags fl=QgsGuiUtils::ModalDialogFlags, QDialogButtonBox::StandardButtons buttons=QDialogButtonBox::Close, Qt::Orientation orientation=Qt::Horizontal)
Constructor for QgsDialog.