diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-08-12 18:44:30 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-08-16 22:22:09 +0900 |
commit | 31fba8412589656cf1c330ad617732a346309344 (patch) | |
tree | 536f2f3b637ac5f0f91e76a9e2090480b4dda19f /src/gui/tablefieldwidget.cpp | |
parent | 37c2ad0c29c602b42d03c446bdd00dcb50f2729c (diff) | |
download | tellico-31fba8412589656cf1c330ad617732a346309344.tar.gz tellico-31fba8412589656cf1c330ad617732a346309344.zip |
Drop TQT_BASE_OBJECT* defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 074a3e6db609cc04e0a5830b0c1884447d0e5bbb)
Diffstat (limited to 'src/gui/tablefieldwidget.cpp')
-rw-r--r-- | src/gui/tablefieldwidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/tablefieldwidget.cpp b/src/gui/tablefieldwidget.cpp index 5d63970..cdaabec 100644 --- a/src/gui/tablefieldwidget.cpp +++ b/src/gui/tablefieldwidget.cpp @@ -227,7 +227,7 @@ void TableFieldWidget::updateFieldHook(Data::FieldPtr, Data::FieldPtr newField_) bool TableFieldWidget::eventFilter(TQObject* obj_, TQEvent* ev_) { if(ev_->type() == TQEvent::MouseButtonPress && TQT_TQMOUSEEVENT(ev_)->button() == Qt::RightButton) { - if(TQT_BASE_OBJECT(obj_) == TQT_BASE_OBJECT(m_table->horizontalHeader())) { + if(obj_ == m_table->horizontalHeader()) { TQMouseEvent* ev = TQT_TQMOUSEEVENT(ev_); // might be scrolled int pos = ev->x() + m_table->horizontalHeader()->offset(); @@ -242,7 +242,7 @@ bool TableFieldWidget::eventFilter(TQObject* obj_, TQEvent* ev_) { this, TQT_SLOT(slotRenameColumn())); menu.exec(ev->globalPos()); return true; - } else if(TQT_BASE_OBJECT(obj_) == TQT_BASE_OBJECT(m_table->verticalHeader())) { + } else if(obj_ == m_table->verticalHeader()) { TQMouseEvent* ev = TQT_TQMOUSEEVENT(ev_); // might be scrolled int pos = ev->y() + m_table->verticalHeader()->offset(); |