From f892e5be3d09d6a1983813bb9fe8f793b08b7054 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 14 Dec 2023 21:19:10 +0900 Subject: Remove various '#define' strings - part 6 Signed-off-by: Michele Calgaro (cherry picked from commit da9081a78aa22cc87ff98f07719e1c3befaebfc2) --- kmymoney2/widgets/kmymoneycalculator.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'kmymoney2/widgets/kmymoneycalculator.cpp') 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))); -- cgit v1.2.1