From cfee7c430dfa8778709343b7809f2fc4e24ef914 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 6 Nov 2023 11:39:17 +0900 Subject: Replace Qt with TQt Signed-off-by: Michele Calgaro (cherry picked from commit b93a9330d8b06f081d4ea3d2d48cdba2b6b2ce46) --- kpovmodeler/pmglview.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'kpovmodeler/pmglview.cpp') diff --git a/kpovmodeler/pmglview.cpp b/kpovmodeler/pmglview.cpp index 794aac67..9e0e6deb 100644 --- a/kpovmodeler/pmglview.cpp +++ b/kpovmodeler/pmglview.cpp @@ -507,7 +507,7 @@ void PMGLView::mousePressEvent( TQMouseEvent* e ) { if( m_bScaleMode || m_bTranslateMode ) { - if( ( e->button( ) & Qt::LeftButton ) && ( e->state( ) == 0 ) ) + if( ( e->button( ) & TQt::LeftButton ) && ( e->state( ) == 0 ) ) { m_bMousePressed = true; m_mousePos = e->pos( ); @@ -517,7 +517,7 @@ void PMGLView::mousePressEvent( TQMouseEvent* e ) } else if( m_type != PMViewCamera ) { - if( ( e->button( ) & Qt::LeftButton ) && m_bInverseValid + if( ( e->button( ) & TQt::LeftButton ) && m_bInverseValid && m_pActiveObject ) { if( m_pUnderMouse ) @@ -578,7 +578,7 @@ void PMGLView::mousePressEvent( TQMouseEvent* e ) if( !( m_bGraphicalChangeMode || m_bMousePressed ) ) { - if( ( e->button( ) == Qt::RightButton ) && ( e->state( ) == 0 ) ) + if( ( e->button( ) == TQt::RightButton ) && ( e->state( ) == 0 ) ) { m_contextClickPosition = PMVector( screenToInternalX( e->x( ) ), screenToInternalY( e->y( ) ) ); @@ -599,7 +599,7 @@ void PMGLView::mousePressEvent( TQMouseEvent* e ) } } - if( e->button( ) == Qt::MidButton ) + if( e->button( ) == TQt::MidButton ) { m_bMidMousePressed = true; m_mousePos = e->pos( ); @@ -677,7 +677,7 @@ void PMGLView::mouseReleaseEvent( TQMouseEvent* e ) m_autoScrollTimer.stop( ); } - if( e->button( ) & Qt::MidButton ) + if( e->button( ) & TQt::MidButton ) m_bMidMousePressed = false; m_bSelectUnderMouse = false; -- cgit v1.2.3