diff options
author | Darrell Anderson <humanreadable@yahoo.com> | 2012-04-13 02:20:30 -0500 |
---|---|---|
committer | Darrell Anderson <humanreadable@yahoo.com> | 2012-04-13 02:20:30 -0500 |
commit | 2943dd3424f5363483d65eb10d0cae34bd2051c7 (patch) | |
tree | ad1535e913d633aa51849390e45fae71280a5011 /kmymoney2/widgets/kmymoneycalculator.cpp | |
parent | 9485ffbe6ee7a34abcf18b6f97d519949970f1a5 (diff) | |
download | kmymoney-2943dd3424f5363483d65eb10d0cae34bd2051c7.tar.gz kmymoney-2943dd3424f5363483d65eb10d0cae34bd2051c7.zip |
Fix inadvertent "TQ" changes.
Diffstat (limited to 'kmymoney2/widgets/kmymoneycalculator.cpp')
-rw-r--r-- | kmymoney2/widgets/kmymoneycalculator.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kmymoney2/widgets/kmymoneycalculator.cpp b/kmymoney2/widgets/kmymoneycalculator.cpp index 47d45ed..e3b72a4 100644 --- a/kmymoney2/widgets/kmymoneycalculator.cpp +++ b/kmymoney2/widgets/kmymoneycalculator.cpp @@ -67,7 +67,7 @@ kMyMoneyCalculator::kMyMoneyCalculator(TQWidget* parent, const char *name) buttons[MINUS] = new KPushButton("-", this); buttons[STAR] = new KPushButton("X", this); buttons[COMMA] = new KPushButton(m_comma, this); - buttons[ETQUAL] = new KPushButton("=", this); + buttons[EQUAL] = new KPushButton("=", this); buttons[SLASH] = new KPushButton("/", this); buttons[CLEAR] = new KPushButton("C", this); buttons[CLEARALL] = new KPushButton("AC", this); @@ -90,13 +90,13 @@ kMyMoneyCalculator::kMyMoneyCalculator(TQWidget* parent, const char *name) grid->addWidget(buttons[MINUS], 4, 3); grid->addWidget(buttons[STAR], 3, 4); grid->addWidget(buttons[SLASH], 4, 4); - grid->addWidget(buttons[ETQUAL], 4, 2); + grid->addWidget(buttons[EQUAL], 4, 2); grid->addWidget(buttons[PLUSMINUS], 2, 3); grid->addWidget(buttons[PERCENT], 2, 4); grid->addWidget(buttons[CLEAR], 1, 3); grid->addWidget(buttons[CLEARALL], 1, 4); - buttons[ETQUAL]->setFocus(); + buttons[EQUAL]->setFocus(); op1 = 0.0; stackedOp = op = 0; @@ -113,7 +113,7 @@ kMyMoneyCalculator::kMyMoneyCalculator(TQWidget* parent, const char *name) // connect the calculation operations through another mapper mapper = new TQSignalMapper(TQT_TQOBJECT(this)); - for(int i = PLUS; i <= ETQUAL; ++i) { + for(int i = PLUS; i <= EQUAL; ++i) { mapper->setMapping(TQT_TQOBJECT(buttons[i]), i); connect(buttons[i], TQT_SIGNAL(clicked()), mapper, TQT_SLOT(map())); } @@ -184,7 +184,7 @@ void kMyMoneyCalculator::plusminusClicked(void) void kMyMoneyCalculator::calculationClicked(int button) { - if(operand.length() == 0 && op != 0 && button == ETQUAL) { + if(operand.length() == 0 && op != 0 && button == EQUAL) { op = 0; m_result = normalizeString(op1); changeDisplay(m_result); @@ -249,7 +249,7 @@ void kMyMoneyCalculator::calculationClicked(int button) changeDisplay(m_result); } - if(button != ETQUAL) { + if(button != EQUAL) { op = button; } else { op = 0; @@ -396,7 +396,7 @@ void kMyMoneyCalculator::keyPressEvent(TQKeyEvent* ev) case TQt::Key_Return: case TQt::Key_Enter: case TQt::Key_Equal: - button = ETQUAL; + button = EQUAL; break; case TQt::Key_Escape: button = CLEARALL; |