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.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/kmymoney2/widgets/kmymoneycalculator.cpp b/kmymoney2/widgets/kmymoneycalculator.cpp
index 5222288..758f4a2 100644
--- a/kmymoney2/widgets/kmymoneycalculator.cpp
+++ b/kmymoney2/widgets/kmymoneycalculator.cpp
@@ -108,17 +108,17 @@ kMyMoneyCalculator::kMyMoneyCalculator(TQWidget* parent, const char *name)
changeDisplay("0");
// connect the digit signals through a signal mapper
- TQSignalMapper* mapper = new TQSignalMapper(TQT_TQOBJECT(this));
+ TQSignalMapper* mapper = new TQSignalMapper(this);
for(int i = 0; i < 10; ++i) {
- mapper->setMapping(TQT_TQOBJECT(buttons[i]), i);
+ mapper->setMapping(buttons[i], i);
connect(buttons[i], TQT_SIGNAL(clicked()), mapper, TQT_SLOT(map()));
}
connect(mapper, TQT_SIGNAL(mapped(int)), this, TQT_SLOT(digitClicked(int)));
// connect the calculation operations through another mapper
- mapper = new TQSignalMapper(TQT_TQOBJECT(this));
+ mapper = new TQSignalMapper(this);
for(int i = PLUS; i <= EQUAL; ++i) {
- mapper->setMapping(TQT_TQOBJECT(buttons[i]), i);
+ mapper->setMapping(buttons[i], i);
connect(buttons[i], TQT_SIGNAL(clicked()), mapper, TQT_SLOT(map()));
}
connect(mapper, TQT_SIGNAL(mapped(int)), this, TQT_SLOT(calculationClicked(int)));