diff options
Diffstat (limited to 'lib/kofficecore/KoFrame.cpp')
-rw-r--r-- | lib/kofficecore/KoFrame.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/kofficecore/KoFrame.cpp b/lib/kofficecore/KoFrame.cpp index 2662169e..f11ba9f0 100644 --- a/lib/kofficecore/KoFrame.cpp +++ b/lib/kofficecore/KoFrame.cpp @@ -217,21 +217,21 @@ void KoFrame::mousePressEvent( TQMouseEvent* ev ) TQRect r7( 0, height() / 2 - 3, 5, 5 ); TQRect r8( width()- 5, height() / 2 - 3, 5, 5 ); - if ( r1.tqcontains( ev->pos() ) ) + if ( r1.contains( ev->pos() ) ) d->m_mode = 1; - else if ( r2.tqcontains( ev->pos() ) ) + else if ( r2.contains( ev->pos() ) ) d->m_mode = 2; - else if ( r3.tqcontains( ev->pos() ) ) + else if ( r3.contains( ev->pos() ) ) d->m_mode = 3; - else if ( r4.tqcontains( ev->pos() ) ) + else if ( r4.contains( ev->pos() ) ) d->m_mode = 4; - else if ( r5.tqcontains( ev->pos() ) ) + else if ( r5.contains( ev->pos() ) ) d->m_mode = 5; - else if ( r6.tqcontains( ev->pos() ) ) + else if ( r6.contains( ev->pos() ) ) d->m_mode = 6; - else if ( r7.tqcontains( ev->pos() ) ) + else if ( r7.contains( ev->pos() ) ) d->m_mode = 7; - else if ( r8.tqcontains( ev->pos() ) ) + else if ( r8.contains( ev->pos() ) ) d->m_mode = 8; else d->m_mode = 0; @@ -327,13 +327,13 @@ void KoFrame::mouseMoveEvent( TQMouseEvent* ev ) TQRect r7( 0, height() / 2 - 3, 5, 5 ); TQRect r8( width()- 5, height() / 2 - 3, 5, 5 ); - if ( r1.tqcontains( ev->pos() ) || r3.tqcontains( ev->pos() ) ) + if ( r1.contains( ev->pos() ) || r3.contains( ev->pos() ) ) setCursor( sizeFDiagCursor ); - else if ( r2.tqcontains( ev->pos() ) || r4.tqcontains( ev->pos() ) ) + else if ( r2.contains( ev->pos() ) || r4.contains( ev->pos() ) ) setCursor( sizeBDiagCursor ); - else if ( r5.tqcontains( ev->pos() ) || r6.tqcontains( ev->pos() ) ) + else if ( r5.contains( ev->pos() ) || r6.contains( ev->pos() ) ) setCursor( sizeVerCursor ); - else if ( r7.tqcontains( ev->pos() ) || r8.tqcontains( ev->pos() ) ) + else if ( r7.contains( ev->pos() ) || r8.contains( ev->pos() ) ) setCursor( sizeHorCursor ); else setCursor( KCursor::handCursor() ); |