21 QDialogButtonBox::StandardButtons buttons,
22 Qt::Orientation orientation )
23 : QDialog( parent, fl )
26 mButtonBox =
new QDialogButtonBox( buttons, orientation,
this );
27 connect(
mButtonBox, SIGNAL( accepted() ),
this, SLOT( accept() ) );
28 connect(
mButtonBox, SIGNAL( rejected() ),
this, SLOT( reject() ) );
32 if ( orientation == Qt::Horizontal )
33 layout =
new QVBoxLayout();
35 layout =
new QHBoxLayout();
QDialogButtonBox * mButtonBox
QVBoxLayout * layout()
Returns the central layout. Widgets added to it must have this dialog as parent.
QgsDialog(QWidget *parent=0, Qt::WindowFlags fl=QgisGui::ModalDialogFlags, QDialogButtonBox::StandardButtons buttons=QDialogButtonBox::Close, Qt::Orientation orientation=Qt::Horizontal)