summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/tools/designer/examples/credit/creditform.cpp
blob: 3a2afa342477d575e762fdc6deee3ad462dc3747 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <tqradiobutton.h>
#include <tqspinbox.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() );
}