From e0b799d647cf144caa7a58615e02132d9fd54809 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 12 Aug 2023 18:47:14 +0900 Subject: Drop TQT_BASE_OBJECT* defines Signed-off-by: Michele Calgaro --- kview/kview.cpp | 2 +- kview/kviewcanvas/kimagecanvas.cpp | 2 +- kview/modules/presenter/kviewpresenter.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'kview') diff --git a/kview/kview.cpp b/kview/kview.cpp index 063a0e14..8ecaeba9 100644 --- a/kview/kview.cpp +++ b/kview/kview.cpp @@ -251,7 +251,7 @@ void KView::readSettings() // TDEConfig * config ) bool KView::eventFilter( TQObject * obj, TQEvent * ev ) { - if( ev->type() == TQEvent::Resize && TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(m_pViewer->widget()) ) + if( ev->type() == TQEvent::Resize && obj == m_pViewer->widget() ) { if( m_nResizeMode == ResizeImage ) handleResize(); diff --git a/kview/kviewcanvas/kimagecanvas.cpp b/kview/kviewcanvas/kimagecanvas.cpp index 8c203478..39e78305 100644 --- a/kview/kviewcanvas/kimagecanvas.cpp +++ b/kview/kviewcanvas/kimagecanvas.cpp @@ -326,7 +326,7 @@ TQString KImageCanvas::blendEffectDescription( unsigned int idx ) const bool KImageCanvas::eventFilter( TQObject * obj, TQEvent * ev ) { - if( ( TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(m_client) || TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(m_oldClient) ) && ev->type() == TQEvent::MouseMove ) + if( ( obj == m_client || obj == m_oldClient ) && ev->type() == TQEvent::MouseMove ) mouseMoveEvent( TQT_TQMOUSEEVENT( ev ) ); return TQScrollView::eventFilter( obj, ev ); } diff --git a/kview/modules/presenter/kviewpresenter.cpp b/kview/modules/presenter/kviewpresenter.cpp index 99083b6d..3017e1b8 100644 --- a/kview/modules/presenter/kviewpresenter.cpp +++ b/kview/modules/presenter/kviewpresenter.cpp @@ -160,7 +160,7 @@ KViewPresenter::~KViewPresenter() bool KViewPresenter::eventFilter( TQObject *obj, TQEvent *ev ) { - if( TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(m_pImageList) || TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(m_pImageList->m_pListView) || TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(m_pImageList->m_pListView->viewport()) || TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(m_pViewer->widget()) ) + if( obj == m_pImageList || obj == m_pImageList->m_pListView || obj == m_pImageList->m_pListView->viewport() || obj == m_pViewer->widget() ) { switch( ev->type() ) { -- cgit v1.2.1