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.
qt3/tools/designer/examples/credit/creditform.cpp

21 lines
508 B

#include <qradiobutton.h>
#include <qspinbox.h>
#include "creditform.h"
CreditForm::CreditForm( QWidget* 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() );
}