summaryrefslogtreecommitdiffstats
path: root/kview
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-08-12 18:47:14 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-08-17 20:16:22 +0900
commitfbcad37de1da878a3d6df5928cf0d41bbbe5a273 (patch)
tree34f89829397a87e7327ca8ed3d14ca69624731b4 /kview
parent8b76e7f3dcb1212153eed293ad3ba4ec7f37bb13 (diff)
downloadtdegraphics-fbcad37de1da878a3d6df5928cf0d41bbbe5a273.tar.gz
tdegraphics-fbcad37de1da878a3d6df5928cf0d41bbbe5a273.zip
Drop TQT_BASE_OBJECT* defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit e0b799d647cf144caa7a58615e02132d9fd54809)
Diffstat (limited to 'kview')
-rw-r--r--kview/kview.cpp2
-rw-r--r--kview/kviewcanvas/kimagecanvas.cpp2
-rw-r--r--kview/modules/presenter/kviewpresenter.cpp2
3 files changed, 3 insertions, 3 deletions
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 c05490bb..b54867d0 100644
--- a/kview/modules/presenter/kviewpresenter.cpp
+++ b/kview/modules/presenter/kviewpresenter.cpp
@@ -161,7 +161,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() )
{