summaryrefslogtreecommitdiffstats
path: root/kmymoney2/widgets/register.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-08-12 18:43:57 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-08-16 22:21:54 +0900
commit1c3fb8b2e1ca2bae4b56d61d7d20b120249cd73f (patch)
tree6e581a55f270d501f80a9a9681da703afedc41ed /kmymoney2/widgets/register.cpp
parent6d209e21645fa7d1d180aef9dcdc4aad281682ea (diff)
downloadkmymoney-1c3fb8b2e1ca2bae4b56d61d7d20b120249cd73f.tar.gz
kmymoney-1c3fb8b2e1ca2bae4b56d61d7d20b120249cd73f.zip
Drop TQT_BASE_OBJECT* defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit ba6005e901224a5f03b58e975a1b452ef61ae8ec)
Diffstat (limited to 'kmymoney2/widgets/register.cpp')
-rw-r--r--kmymoney2/widgets/register.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/kmymoney2/widgets/register.cpp b/kmymoney2/widgets/register.cpp
index b52dff4..7fcb242 100644
--- a/kmymoney2/widgets/register.cpp
+++ b/kmymoney2/widgets/register.cpp
@@ -679,7 +679,7 @@ void Register::slotAutoColumnSizing(int section)
bool Register::eventFilter(TQObject* o, TQEvent* e)
{
- if(TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(horizontalHeader()) && e->type() == TQEvent::MouseButtonPress) {
+ if(o == horizontalHeader() && e->type() == TQEvent::MouseButtonPress) {
TQMouseEvent *me = dynamic_cast<TQMouseEvent*>(e);
if(me->button() == Qt::RightButton) {
emit headerClicked();
@@ -687,13 +687,13 @@ bool Register::eventFilter(TQObject* o, TQEvent* e)
// eat up left mouse button press for now
return true;
- } else if(TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(horizontalHeader()) && e->type() == TQEvent::Paint) {
+ } else if(o == horizontalHeader() && e->type() == TQEvent::Paint) {
// always show the header in bold (to suppress cell selection)
TQFont f(horizontalHeader()->font());
f.setBold(true);
horizontalHeader()->setFont(f);
- } else if(TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(this) && e->type() == TQEvent::KeyPress) {
+ } else if(o == this && e->type() == TQEvent::KeyPress) {
TQKeyEvent* ke = dynamic_cast<TQKeyEvent*>(e);
if(ke->key() == TQt::Key_Menu) {
emit openContextMenu();