diff options
Diffstat (limited to 'chalk/ui/kobirdeyepanel.cpp')
-rw-r--r-- | chalk/ui/kobirdeyepanel.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chalk/ui/kobirdeyepanel.cpp b/chalk/ui/kobirdeyepanel.cpp index 46e0a585..ee784efa 100644 --- a/chalk/ui/kobirdeyepanel.cpp +++ b/chalk/ui/kobirdeyepanel.cpp @@ -307,15 +307,15 @@ void KoBirdEyePanel::updateVisibleArea() bool KoBirdEyePanel::eventFilter(TQObject* o, TQEvent* ev) { - if (TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_page->view) && ev->type() == TQEvent::Resize) { + if (o == m_page->view && ev->type() == TQEvent::Resize) { resizeViewEvent(TQT_TQRESIZEEVENT(ev)->size()); } - if (TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_page->view) && ev->type() == TQEvent::Paint) { + if (o == m_page->view && ev->type() == TQEvent::Paint) { paintViewEvent(TQT_TQPAINTEVENT(ev)); } - if (TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_page->view) && ev->type() == TQEvent::MouseMove) { + if (o == m_page->view && ev->type() == TQEvent::MouseMove) { TQMouseEvent* me = (TQMouseEvent*)ev; TQPoint thumbnailPos = viewToThumbnail(me->pos()); @@ -329,7 +329,7 @@ bool KoBirdEyePanel::eventFilter(TQObject* o, TQEvent* ev) return true; } - if (TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_page->view) && ev->type() == TQEvent::MouseButtonPress) { + if (o == m_page->view && ev->type() == TQEvent::MouseButtonPress) { TQMouseEvent* me = (TQMouseEvent*)ev; TQPoint thumbnailPos = viewToThumbnail(me->pos()); @@ -341,7 +341,7 @@ bool KoBirdEyePanel::eventFilter(TQObject* o, TQEvent* ev) return true; } - if (TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_page->view) && ev->type() == TQEvent::MouseButtonRelease) { + if (o == m_page->view && ev->type() == TQEvent::MouseButtonRelease) { TQMouseEvent* me = (TQMouseEvent*)ev; |