diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-09 02:23:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-09 02:23:29 +0000 |
commit | 7c71ab86d1f7e387fc3df63b48df07231f111862 (patch) | |
tree | 30ba2d2f840ff5fd458b6113e9c3f2e8a71d510d /lib/kotext/KoTextZoomHandler.cpp | |
parent | afbfdc507bfaafc8824a9808311d57a9ece87510 (diff) | |
download | koffice-7c71ab86d1f7e387fc3df63b48df07231f111862.tar.gz koffice-7c71ab86d1f7e387fc3df63b48df07231f111862.zip |
Remove the tq in front of these incorrectly TQt4-converted methods/data members:
tqrepaint[...]
tqinvalidate[...]
tqparent[...]
tqmask[...]
tqlayout[...]
tqalignment[...]
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1240522 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/kotext/KoTextZoomHandler.cpp')
-rw-r--r-- | lib/kotext/KoTextZoomHandler.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/kotext/KoTextZoomHandler.cpp b/lib/kotext/KoTextZoomHandler.cpp index acd2285d..e9fc430f 100644 --- a/lib/kotext/KoTextZoomHandler.cpp +++ b/lib/kotext/KoTextZoomHandler.cpp @@ -36,39 +36,39 @@ int KoTextZoomHandler::fontSizeToLayoutUnit( double ptSizeFloat, bool forPrint ) } #endif -double KoTextZoomHandler::tqlayoutUnitToFontSize( int luSize, bool /*forPrint*/ ) const +double KoTextZoomHandler::layoutUnitToFontSize( int luSize, bool /*forPrint*/ ) const { // TQt will use TQPaintDevice::x11AppDpiY() to go from pt to pixel for fonts - return tqlayoutUnitPtToPt( luSize ) * m_zoomedResolutionY + return layoutUnitPtToPt( luSize ) * m_zoomedResolutionY #ifdef Q_WS_X11 / POINT_TO_INCH(TQPaintDevice::x11AppDpiY()) #endif ; } -int KoTextZoomHandler::tqlayoutUnitToPixelX( int x, int w ) const +int KoTextZoomHandler::layoutUnitToPixelX( int x, int w ) const { - // We call tqlayoutUnitToPixelX on the right value, i.e. x+w-1, + // We call layoutUnitToPixelX on the right value, i.e. x+w-1, // and then determine the height from the result (i.e. right-left+1). - // Calling tqlayoutUnitToPixelX(w) leads to rounding problems. - return tqlayoutUnitToPixelY( x + w - 1 ) - tqlayoutUnitToPixelY( x ) + 1; + // Calling layoutUnitToPixelX(w) leads to rounding problems. + return layoutUnitToPixelY( x + w - 1 ) - layoutUnitToPixelY( x ) + 1; } -int KoTextZoomHandler::tqlayoutUnitToPixelY( int y, int h ) const +int KoTextZoomHandler::layoutUnitToPixelY( int y, int h ) const { - // We call tqlayoutUnitToPixelY on the bottom value, i.e. y+h-1, + // We call layoutUnitToPixelY on the bottom value, i.e. y+h-1, // and then determine the height from the result (i.e. bottom-top+1). - // Calling tqlayoutUnitToPixelY(h) leads to rounding problems. - return tqlayoutUnitToPixelY( y + h - 1 ) - tqlayoutUnitToPixelY( y ) + 1; + // Calling layoutUnitToPixelY(h) leads to rounding problems. + return layoutUnitToPixelY( y + h - 1 ) - layoutUnitToPixelY( y ) + 1; } -int KoTextZoomHandler::tqlayoutUnitToPixelX( int lupix ) const +int KoTextZoomHandler::layoutUnitToPixelX( int lupix ) const { return int( static_cast<double>( lupix * m_zoomedResolutionX ) / ( static_cast<double>( m_layoutUnitFactor ) * m_resolutionX ) ); } -int KoTextZoomHandler::tqlayoutUnitToPixelY( int lupix ) const +int KoTextZoomHandler::layoutUnitToPixelY( int lupix ) const { // tqRound replaced with a truncation, too many problems (e.g. bottom of parags) return int( static_cast<double>( lupix * m_zoomedResolutionY ) |