summaryrefslogtreecommitdiffstats
path: root/kmymoney2/widgets/kmymoneycalculator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/widgets/kmymoneycalculator.cpp')
-rw-r--r--kmymoney2/widgets/kmymoneycalculator.cpp14
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;