diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-04-21 23:22:20 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-04-21 23:22:20 +0900 |
| commit | dba036816b279bc1539a9f3894fbc414665d2bce (patch) | |
| tree | 29e4bf00bafe515e7afdd02168d65a47a3f9fbc0 /tqtinterface/qt4/tools/designer/examples/receiver2/receiver.cpp | |
| parent | 6f1b4f0c7505a049d992a33f6e409b7c75732d4b (diff) | |
| download | experimental-dba036816b279bc1539a9f3894fbc414665d2bce.tar.gz experimental-dba036816b279bc1539a9f3894fbc414665d2bce.zip | |
Removed unnecessary and/or TDE-unrelated code.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'tqtinterface/qt4/tools/designer/examples/receiver2/receiver.cpp')
| -rw-r--r-- | tqtinterface/qt4/tools/designer/examples/receiver2/receiver.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/tqtinterface/qt4/tools/designer/examples/receiver2/receiver.cpp b/tqtinterface/qt4/tools/designer/examples/receiver2/receiver.cpp deleted file mode 100644 index 2f6f115..0000000 --- a/tqtinterface/qt4/tools/designer/examples/receiver2/receiver.cpp +++ /dev/null @@ -1,29 +0,0 @@ -#include <tqradiobutton.h> -#include <tqspinbox.h> -#include "receiver.h" - -void Receiver::setParent( TQDialog *parent ) -{ - p = parent; - setAmount(); -} - -void Receiver::setAmount() -{ - TQSpinBox *amount = - (TQSpinBox *) p->child( "amountSpinBox", "TQSpinBox" ); - - TQRadioButton *radio = - (TQRadioButton *) p->child( "stdRadioButton", "TQRadioButton" ); - if ( radio && radio->isChecked() ) { - if ( amount ) - amount->setValue( amount->maxValue() / 2 ); - return; - } - - radio = - (TQRadioButton *) p->child( "noneRadioButton", "TQRadioButton" ); - if ( radio && radio->isChecked() ) - if ( amount ) - amount->setValue( amount->minValue() ); -} |
