diff options
author | Michele Calgaro <[email protected]> | 2023-08-12 18:44:08 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-08-18 20:22:59 +0900 |
commit | a7ea84c97639f635d798348432f355e3ac496a1d (patch) | |
tree | 34917a6af147ff19cc1f059ef72db53a196d4b61 /kivio/kiviopart/ui/kivio_birdeye_panel.cpp | |
parent | ca88704c3e4a4fd5ddc9e96e4ccf22b53816e03d (diff) | |
download | koffice-a7ea84c97639f635d798348432f355e3ac496a1d.tar.gz koffice-a7ea84c97639f635d798348432f355e3ac496a1d.zip |
Drop TQT_BASE_OBJECT* defines
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'kivio/kiviopart/ui/kivio_birdeye_panel.cpp')
-rw-r--r-- | kivio/kiviopart/ui/kivio_birdeye_panel.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kivio/kiviopart/ui/kivio_birdeye_panel.cpp b/kivio/kiviopart/ui/kivio_birdeye_panel.cpp index 0d5fc9d1..ba1e9cd5 100644 --- a/kivio/kiviopart/ui/kivio_birdeye_panel.cpp +++ b/kivio/kiviopart/ui/kivio_birdeye_panel.cpp @@ -84,21 +84,21 @@ void KivioBirdEyePanel::slotUpdateView(KivioPage* page) bool KivioBirdEyePanel::eventFilter(TQObject* o, TQEvent* ev) { - if (TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(canvas) && ev->type() == TQEvent::Show) { + if (o == canvas && ev->type() == TQEvent::Show) { updateView(); } - if (TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(canvas) && ev->type() == TQEvent::Resize) { + if (o == canvas && ev->type() == TQEvent::Resize) { m_buffer->resize(canvas->size()); slotUpdateView(m_pView->activePage()); } - if (TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(canvas) && ev->type() == TQEvent::Paint) { + if (o == canvas && ev->type() == TQEvent::Paint) { updateView(); return true; } - if (TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(canvas) && ev->type() == TQEvent::MouseMove) { + if (o == canvas && ev->type() == TQEvent::MouseMove) { TQMouseEvent* me = TQT_TQMOUSEEVENT(ev); if (me->state() == Qt::LeftButton) handleMouseMoveAction(me->pos()); @@ -109,7 +109,7 @@ bool KivioBirdEyePanel::eventFilter(TQObject* o, TQEvent* ev) return true; } - if (TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(canvas) && ev->type() == TQEvent::MouseButtonPress) { + if (o == canvas && ev->type() == TQEvent::MouseButtonPress) { TQMouseEvent* me = TQT_TQMOUSEEVENT(ev); if (me->button() == Qt::LeftButton) handleMousePress(me->pos()); |