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
513 B
21 lines
513 B
#include <ntqradiobutton.h>
|
|
#include <ntqspinbox.h>
|
|
#include "creditform.h"
|
|
|
|
CreditForm::CreditForm( TQWidget* parent, const char* name,
|
|
bool modal, WFlags fl )
|
|
: CreditFormBase( parent, name, modal, fl )
|
|
{
|
|
setAmount();
|
|
}
|
|
|
|
CreditForm::~CreditForm() { /* NOOP */ }
|
|
|
|
void CreditForm::setAmount()
|
|
{
|
|
if ( stdRadioButton->isChecked() )
|
|
amountSpinBox->setValue( amountSpinBox->maxValue() / 2 );
|
|
else if ( noneRadioButton->isChecked() )
|
|
amountSpinBox->setValue( amountSpinBox->minValue() );
|
|
}
|