summaryrefslogtreecommitdiffstats
path: root/kmymoney2/widgets/kmymoneycalculator.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-12-14 21:19:10 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-12-15 11:45:44 +0900
commitda9081a78aa22cc87ff98f07719e1c3befaebfc2 (patch)
tree1a0fb028d84934ac9cc9423275a9ab9fbe944030 /kmymoney2/widgets/kmymoneycalculator.cpp
parent47cc1d27da80b198fc28b0c48baa3cb4dfb27161 (diff)
downloadkmymoney-da9081a78aa22cc87ff98f07719e1c3befaebfc2.tar.gz
kmymoney-da9081a78aa22cc87ff98f07719e1c3befaebfc2.zip
Remove various '#define' strings - part 6
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
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)));