21QgsDialog::QgsDialog( QWidget *parent, Qt::WindowFlags fl, QDialogButtonBox::StandardButtons buttons, Qt::Orientation orientation )
22 : QDialog( parent, fl )
25 mButtonBox =
new QDialogButtonBox( buttons, orientation,
this );
26 connect(
mButtonBox, &QDialogButtonBox::accepted,
this, &QDialog::accept );
27 connect(
mButtonBox, &QDialogButtonBox::rejected,
this, &QDialog::reject );
30 QBoxLayout *
layout =
nullptr;
31 if ( orientation == Qt::Horizontal )
32 layout =
new QVBoxLayout();
34 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.