diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-06 11:39:17 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-07 11:44:25 +0900 |
commit | b93a9330d8b06f081d4ea3d2d48cdba2b6b2ce46 (patch) | |
tree | a322378de9225faac7c5226d1aaa01c4bfcdf527 /kview | |
parent | 0181791a29594df4dbf38706d0b9ed509b3141f4 (diff) | |
download | tdegraphics-b93a9330d8b06f081d4ea3d2d48cdba2b6b2ce46.tar.gz tdegraphics-b93a9330d8b06f081d4ea3d2d48cdba2b6b2ce46.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kview')
-rw-r--r-- | kview/kview.cpp | 2 | ||||
-rw-r--r-- | kview/kviewcanvas/kimagecanvas.cpp | 8 | ||||
-rw-r--r-- | kview/kviewcanvas/kimageholder.cpp | 10 |
3 files changed, 10 insertions, 10 deletions
diff --git a/kview/kview.cpp b/kview/kview.cpp index 8ecaeba9..2d12200b 100644 --- a/kview/kview.cpp +++ b/kview/kview.cpp @@ -595,7 +595,7 @@ void KView::fitWindowToImage() TQSize winsize = sizeForCentralWidgetSize( imagesize ); TQRect workarea = m_pWinModule->workArea(); - TQScrollBar * sb = new TQScrollBar( Qt::Horizontal, this ); + TQScrollBar * sb = new TQScrollBar( TQt::Horizontal, this ); int scrollbarwidth = sb->height(); delete sb; diff --git a/kview/kviewcanvas/kimagecanvas.cpp b/kview/kviewcanvas/kimagecanvas.cpp index 8f1c31eb..7a317d9c 100644 --- a/kview/kviewcanvas/kimagecanvas.cpp +++ b/kview/kviewcanvas/kimagecanvas.cpp @@ -83,7 +83,7 @@ KImageCanvas::KImageCanvas( TQWidget * parent, const char * name, const TQString TQWidget::setMouseTracking( true ); viewport()->setMouseTracking( true ); - m_cursor.setShape( Qt::CrossCursor ); + m_cursor.setShape( TQt::CrossCursor ); viewport()->setCursor( m_cursor ); m_pTimer->start( MOUSECURSORHIDETIME, true ); @@ -589,7 +589,7 @@ void KImageCanvas::mouseMoveEvent( TQMouseEvent * ) { if( m_cursor.shape() == TQt::BlankCursor ) { - m_cursor.setShape( Qt::CrossCursor ); + m_cursor.setShape( TQt::CrossCursor ); viewport()->setCursor( m_cursor ); if( m_client ) m_client->setCursor( m_cursor ); @@ -607,7 +607,7 @@ void KImageCanvas::resizeEvent( TQResizeEvent * ev ) void KImageCanvas::contentsMousePressEvent( TQMouseEvent * ev ) { - if ( ev->button() == Qt::RightButton ) + if ( ev->button() == TQt::RightButton ) emit contextPress( ev->globalPos() ); TQScrollView::contentsMousePressEvent( ev ); } @@ -772,7 +772,7 @@ void KImageCanvas::timerEvent( TQTimerEvent * ev ) void KImageCanvas::hideCursor() { kdDebug( 4620 ) << k_funcinfo << endl; - m_cursor.setShape( Qt::BlankCursor ); + m_cursor.setShape( TQt::BlankCursor ); viewport()->setCursor( m_cursor ); if( m_client ) m_client->setCursor( m_cursor ); diff --git a/kview/kviewcanvas/kimageholder.cpp b/kview/kviewcanvas/kimageholder.cpp index 2f578382..7a0e35ba 100644 --- a/kview/kviewcanvas/kimageholder.cpp +++ b/kview/kviewcanvas/kimageholder.cpp @@ -64,7 +64,7 @@ void KImageHolder::mousePressEvent( TQMouseEvent *ev ) { //kdDebug( 4620 ) << k_funcinfo << " ev->state() = " << ev->state() << endl; // if the right mouse button is pressed emit the contextPress signal - if ( ev->button() == Qt::RightButton ) + if ( ev->button() == TQt::RightButton ) { emit contextPress( mapToGlobal( ev->pos() ) ); return; @@ -73,7 +73,7 @@ void KImageHolder::mousePressEvent( TQMouseEvent *ev ) if( m_pPixmap == 0 ) return; - if( ev->button() == Qt::LeftButton || ev->button() == Qt::MidButton ) + if( ev->button() == TQt::LeftButton || ev->button() == TQt::MidButton ) { m_scrollpos = ev->globalPos(); m_selectionStartPoint = ev->pos(); @@ -86,10 +86,10 @@ void KImageHolder::mouseMoveEvent( TQMouseEvent *ev ) if( this->rect().contains( ev->pos(), false ) ) emit cursorPos( ev->pos() ); //kdDebug( 4620 ) << k_funcinfo << " ev->state() = " << ev->state() << endl; - if( ev->state() & Qt::LeftButton || ev->state() & Qt::MidButton ) + if( ev->state() & TQt::LeftButton || ev->state() & TQt::MidButton ) { // scroll when a modifier and left button or the middle button is pressed - if( ev->state() & AltButton || ev->state() & ControlButton || ev->state() & ShiftButton || ev->state() & Qt::MidButton ) + if( ev->state() & AltButton || ev->state() & ControlButton || ev->state() & ShiftButton || ev->state() & TQt::MidButton ) { TQPoint difference = m_scrollpos - ev->globalPos(); emit wannaScroll( difference.x(), difference.y() ); @@ -181,7 +181,7 @@ void KImageHolder::mouseReleaseEvent( TQMouseEvent * ev ) m_scrollTimerId = 0; } } - if( ev->state() & Qt::LeftButton || ev->state() & Qt::MidButton ) + if( ev->state() & TQt::LeftButton || ev->state() & TQt::MidButton ) if( m_bSelecting ) m_bSelecting = false; else |