blob: 5318e2ed677490304793ac90c294c02ec87b48d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
void MainForm::init()
{
}
void MainForm::destroy()
{
}
void MainForm::creditDialog()
{
QDialog *creditForm = (QDialog *)
QWidgetFactory::create( "../credit/creditformbase.ui" );
// 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 creditForm;
}
|