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:46:39 +0900
commitf892e5be3d09d6a1983813bb9fe8f793b08b7054 (patch)
tree48834151149dcad594e50c5e1d77d9085f2f7556 /kmymoney2/widgets/kmymoneycalculator.cpp
parentdebbb9657675867af9800ac8fa6036f850edfb4d (diff)
downloadkmymoney-f892e5be3d09d6a1983813bb9fe8f793b08b7054.tar.gz
kmymoney-f892e5be3d09d6a1983813bb9fe8f793b08b7054.zip
Remove various '#define' strings - part 6
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit da9081a78aa22cc87ff98f07719e1c3befaebfc2)
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)));