diff options
author | Michele Calgaro <[email protected]> | 2023-08-12 18:44:30 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-08-16 19:20:35 +0900 |
commit | 074a3e6db609cc04e0a5830b0c1884447d0e5bbb (patch) | |
tree | 536f2f3b637ac5f0f91e76a9e2090480b4dda19f /src/gui | |
parent | e164b1d02780da8e0d91f5c6617b511f1b24fc6d (diff) | |
download | tellico-074a3e6db609cc04e0a5830b0c1884447d0e5bbb.tar.gz tellico-074a3e6db609cc04e0a5830b0c1884447d0e5bbb.zip |
Drop TQT_BASE_OBJECT* defines
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/overlaywidget.cpp | 2 | ||||
-rw-r--r-- | src/gui/tablefieldwidget.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/overlaywidget.cpp b/src/gui/overlaywidget.cpp index 3977ce1..640f810 100644 --- a/src/gui/overlaywidget.cpp +++ b/src/gui/overlaywidget.cpp @@ -81,7 +81,7 @@ void OverlayWidget::reposition() { } bool OverlayWidget::eventFilter(TQObject* object_, TQEvent* event_) { - if(TQT_BASE_OBJECT(object_) == TQT_BASE_OBJECT(m_anchor) && (event_->type() == TQEvent::Move || event_->type() == TQEvent::Resize)) { + if(object_ == m_anchor && (event_->type() == TQEvent::Move || event_->type() == TQEvent::Resize)) { reposition(); } 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(); |