- QPushButton* buttonYes = new QPushButton( tr( "GEOM_BUT_YES" ), this );
- QPushButton* buttonNo = new QPushButton( tr( "GEOM_BUT_NO" ), this );
- QHBoxLayout* btnLayout = new QHBoxLayout;
- btnLayout->setMargin( 0 );
- btnLayout->setSpacing( 6 );
- btnLayout->addWidget( buttonYes );
- btnLayout->addSpacing( 10 );
- btnLayout->addStretch();
- btnLayout->addWidget( buttonNo );
+ QDialogButtonBox* buttonBox = new QDialogButtonBox(QDialogButtonBox::Yes
+ | QDialogButtonBox::No);