blob: 65f2ef91f15969f1780f0b7ad69f94ffa44f18db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
void MainForm::creditDialog()
{
Receiver *receiver = new Receiver;
TQDialog *creditForm = (TQDialog *)
TQWidgetFactory::create( "../credit/creditformbase.ui", receiver );
receiver->setParent( creditForm );
// Set up the dynamic dialog here
if ( creditForm->exec() ) {
// The user accepted, act accordingly
TQSpinBox *amount = (TQSpinBox *) creditForm->child( "amountSpinBox", "TQSpinBox" );
if ( amount )
ratingTextLabel->setText( amount->text() );
}
delete receiver;
delete creditForm;
}
|