You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
558 B
21 lines
558 B
14 years ago
|
void MainForm::creditDialog()
|
||
|
{
|
||
|
Receiver *receiver = new Receiver;
|
||
|
QDialog *creditForm = (QDialog *)
|
||
|
QWidgetFactory::create( "../credit/creditformbase.ui", receiver );
|
||
|
receiver->setParent( creditForm );
|
||
|
|
||
|
// Set up the dynamic dialog here
|
||
|
|
||
|
if ( creditForm->exec() ) {
|
||
|
// The user accepted, act accordingly
|
||
|
QSpinBox *amount = (QSpinBox *) creditForm->child( "amountSpinBox", "QSpinBox" );
|
||
|
if ( amount )
|
||
|
ratingTextLabel->setText( amount->text() );
|
||
|
}
|
||
|
|
||
|
delete receiver;
|
||
|
delete creditForm;
|
||
|
}
|
||
|
|