+ /* Custom box, finish it */
+ {
+ QDialogButtonBox *buttonBox = new QDialogButtonBox;
+
+ if( p_dialog->psz_default_button )
+ {
+ defaultButton = new QPushButton;
+ defaultButton->setFocus();
+ defaultButton->setText( qfu( p_dialog->psz_default_button ) );
+ buttonBox->addButton( defaultButton, QDialogButtonBox::AcceptRole );
+ }
+ if( p_dialog->psz_alternate_button )
+ {
+ altButton = new QPushButton;
+ altButton->setText( qfu( p_dialog->psz_alternate_button ) );
+ buttonBox->addButton( altButton, QDialogButtonBox::RejectRole );
+ }
+ if( p_dialog->psz_other_button )
+ {
+ otherButton = new QPushButton;
+ otherButton->setText( qfu( p_dialog->psz_other_button ) );
+ buttonBox->addButton( otherButton, QDialogButtonBox::ActionRole );
+ }
+ layout->addWidget( buttonBox );
+ if( p_dialog->psz_default_button )
+ BUTTONACT( defaultButton, defaultB() );
+ if( p_dialog->psz_alternate_button )
+ BUTTONACT( altButton, altB() );
+ if( p_dialog->psz_other_button )
+ BUTTONACT( otherButton, otherB() );
+ dialog->setLayout( layout );
+ dialog->setWindowTitle( qfu( p_dialog->psz_title ) );
+ }