From 3477bc314ee51af99a2111d913a171ac5eae7b74 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 12 Aug 2023 18:40:41 +0900 Subject: Drop TQT_BASE_OBJECT* defines Signed-off-by: Michele Calgaro --- src/common/gui/dialog.cpp | 2 +- src/common/gui/list_view.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/gui/dialog.cpp b/src/common/gui/dialog.cpp index ff04649..9b24656 100644 --- a/src/common/gui/dialog.cpp +++ b/src/common/gui/dialog.cpp @@ -181,7 +181,7 @@ void TreeListDialog::pageDestroyed(TQObject *object) TQListViewItemIterator it(_listView); for (; it.current(); ++it) { Item *item = static_cast(it.current()); - if ( TQT_BASE_OBJECT(item->_page)!=TQT_BASE_OBJECT(object) ) continue; + if ( item->_page!=object ) continue; delete item; break; } diff --git a/src/common/gui/list_view.cpp b/src/common/gui/list_view.cpp index d500f7b..97e6b16 100644 --- a/src/common/gui/list_view.cpp +++ b/src/common/gui/list_view.cpp @@ -45,7 +45,7 @@ bool ListView::eventFilter(TQObject *o, TQEvent *e) TQValueList::const_iterator it; for (it=_editItems.begin(); it!=_editItems.end(); ++it) { for (uint i=0; i<(*it)->_editWidgets.count(); i++) { - if ( TQT_BASE_OBJECT((*it)->_editWidgets[i])==TQT_BASE_OBJECT(o) ) { + if ( (*it)->_editWidgets[i]==o ) { //tqDebug("event %i", e->type()); switch (e->type()) { case TQEvent::KeyPress: { -- cgit v1.2.1