diff options
Diffstat (limited to 'tqtinterface/qt4/tools/designer/examples/credit/creditform.cpp')
-rw-r--r-- | tqtinterface/qt4/tools/designer/examples/credit/creditform.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tqtinterface/qt4/tools/designer/examples/credit/creditform.cpp b/tqtinterface/qt4/tools/designer/examples/credit/creditform.cpp new file mode 100644 index 0000000..2a0b52e --- /dev/null +++ b/tqtinterface/qt4/tools/designer/examples/credit/creditform.cpp @@ -0,0 +1,20 @@ +#include <tqradiobutton.h> +#include <tqspinbox.h> +#include "creditform.h" + +CreditForm::CreditForm( TQWidget* tqparent, const char* name, + bool modal, WFlags fl ) + : CreditFormBase( tqparent, 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() ); +} |