diff options
Diffstat (limited to 'ksnapshot')
-rw-r--r-- | ksnapshot/ksnapshot.cpp | 4 | ||||
-rw-r--r-- | ksnapshot/regiongrabber.cpp | 2 | ||||
-rw-r--r-- | ksnapshot/windowgrabber.cpp | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/ksnapshot/ksnapshot.cpp b/ksnapshot/ksnapshot.cpp index c32e983b..e24b8ded 100644 --- a/ksnapshot/ksnapshot.cpp +++ b/ksnapshot/ksnapshot.cpp @@ -400,11 +400,11 @@ void KSnapshot::autoincFilename() TQString numAsStr= name.mid(start, len); TQString number = TQString::number(numAsStr.toInt() + 1); number = number.rightJustify( len, '0'); - name.tqreplace(start, len, number ); + name.replace(start, len, number ); } else { // no number - start = name.tqfindRev('.'); + start = name.findRev('.'); if (start != -1) { // has a . somewhere, e.g. it has an extension name.insert(start, '1'); diff --git a/ksnapshot/regiongrabber.cpp b/ksnapshot/regiongrabber.cpp index ede99aee..c14eb9b3 100644 --- a/ksnapshot/regiongrabber.cpp +++ b/ksnapshot/regiongrabber.cpp @@ -60,7 +60,7 @@ void SizeTip::positionTip( const TQRect &rect ) TQRect deskR = KGlobalSettings::desktopGeometry( TQPoint( 0, 0 ) ); tipRect.moveCenter( TQPoint( deskR.width()/2, deskR.height()/2 ) ); - if ( !rect.tqcontains( tipRect, true ) && rect.intersects( tipRect ) ) + if ( !rect.contains( tipRect, true ) && rect.intersects( tipRect ) ) tipRect.moveBottomRight( tqgeometry().bottomRight() ); } diff --git a/ksnapshot/windowgrabber.cpp b/ksnapshot/windowgrabber.cpp index 0f646a22..a468d7c5 100644 --- a/ksnapshot/windowgrabber.cpp +++ b/ksnapshot/windowgrabber.cpp @@ -303,7 +303,7 @@ void WindowGrabber::wheelEvent( TQWheelEvent *e ) void WindowGrabber::increaseScope( const TQPoint &pos ) { for ( uint i = current + 1; i < windows.size(); i++ ) { - if ( windows[ i ].tqcontains( pos ) ) { + if ( windows[ i ].contains( pos ) ) { current = i; break; } @@ -317,7 +317,7 @@ void WindowGrabber::increaseScope( const TQPoint &pos ) void WindowGrabber::decreaseScope( const TQPoint &pos ) { for ( int i = current - 1; i >= 0; i-- ) { - if ( windows[ i ].tqcontains( pos ) ) { + if ( windows[ i ].contains( pos ) ) { current = i; break; } @@ -330,7 +330,7 @@ void WindowGrabber::decreaseScope( const TQPoint &pos ) int WindowGrabber::windowIndex( const TQPoint &pos ) const { for ( uint i = 0; i < windows.size(); i++ ) { - if ( windows[ i ].tqcontains( pos ) ) + if ( windows[ i ].contains( pos ) ) return i; } return -1; |