From 1c3fb8b2e1ca2bae4b56d61d7d20b120249cd73f Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 12 Aug 2023 18:43:57 +0900 Subject: Drop TQT_BASE_OBJECT* defines Signed-off-by: Michele Calgaro (cherry picked from commit ba6005e901224a5f03b58e975a1b452ef61ae8ec) --- kmymoney2/widgets/register.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kmymoney2/widgets/register.cpp') 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(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(e); if(ke->key() == TQt::Key_Menu) { emit openContextMenu(); -- cgit v1.2.1