- BUTTONACT( otherButton, otherB );
- setLayout( layout );
- setWindowTitle( qfu( p_dialog->psz_title ) );
+ {
+ otherButton = new QPushButton;
+ otherButton->setText( qfu( p_dialog->psz_other_button ) );
+ buttonBox->addButton( otherButton, QDialogButtonBox::ActionRole );
+ }
+ layout->addWidget( buttonBox );
+ /* End the DialogButtonBox */
+
+ /* CONNECTs */
+ 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() );
+
+ /* set the layouts and thte title */
+ dialog->setLayout( layout );
+ dialog->setWindowTitle( qfu( p_dialog->psz_title ) );