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/KoTextDocument.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/KoTextDocument.cpp')
-rw-r--r-- | lib/kotext/KoTextDocument.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/kotext/KoTextDocument.cpp b/lib/kotext/KoTextDocument.cpp index b637f0a6..b5de2a73 100644 --- a/lib/kotext/KoTextDocument.cpp +++ b/lib/kotext/KoTextDocument.cpp @@ -1104,7 +1104,7 @@ KoTextParag *KoTextDocument::drawWYSIWYG( TQPainter *p, int cx, int cy, int cw, TQRect pixelRect = parag->pixelRect( zoomHandler ); if ( isPageBreakEnabled() && parag && cy <= pixelRect.y() && pixelRect.y() > 0 ) { TQRect r( 0, 0, - zoomHandler->tqlayoutUnitToPixelX( parag->document()->x() + parag->document()->width() ), + zoomHandler->layoutUnitToPixelX( parag->document()->x() + parag->document()->width() ), pixelRect.y() ); r &= crect; if ( !r.isEmpty() ) { @@ -1131,7 +1131,7 @@ KoTextParag *KoTextDocument::drawWYSIWYG( TQPainter *p, int cx, int cy, int cw, // (as opposed ir.bottom() which is the last pixel of the parag) if ( ir.y() + ir.height() < nexty ) { TQRect r( 0, ir.y() + ir.height(), - zoomHandler->tqlayoutUnitToPixelX( parag->document()->x() + parag->document()->width() ), + zoomHandler->layoutUnitToPixelX( parag->document()->x() + parag->document()->width() ), nexty - ( ir.y() + ir.height() ) ); r &= crect; if ( !r.isEmpty() ) @@ -1146,7 +1146,7 @@ KoTextParag *KoTextDocument::drawWYSIWYG( TQPainter *p, int cx, int cy, int cw, if ( !ir.intersects( crect ) ) { // Paragraph is not in the crect - but let's check if the area on its right is. - ir.setWidth( zoomHandler->tqlayoutUnitToPixelX( parag->document()->width() ) ); + ir.setWidth( zoomHandler->layoutUnitToPixelX( parag->document()->width() ) ); if ( ir.intersects( crect ) && ( drawingFlags & TransparentBackground ) == 0 ) p->fillRect( ir.intersect( crect ), cg.brush( TQColorGroup::Base ) ); if ( ir.y() > cy + ch ) { @@ -1169,9 +1169,9 @@ KoTextParag *KoTextDocument::drawWYSIWYG( TQPainter *p, int cx, int cy, int cw, floating: pixelRect = parag->pixelRect(zoomHandler); - int docheight = zoomHandler->tqlayoutUnitToPixelY( parag->document()->height() ); + int docheight = zoomHandler->layoutUnitToPixelY( parag->document()->height() ); if ( pixelRect.y() + pixelRect.height() < docheight ) { - int docwidth = zoomHandler->tqlayoutUnitToPixelX( parag->document()->width() ); + int docwidth = zoomHandler->layoutUnitToPixelX( parag->document()->width() ); if ( ( drawingFlags & TransparentBackground ) == 0 ) { p->fillRect( 0, pixelRect.y() + pixelRect.height(), docwidth, docheight - ( pixelRect.y() + pixelRect.height() ), @@ -1267,7 +1267,7 @@ void KoTextDocument::drawParagWYSIWYG( TQPainter *p, KoTextParag *parag, int cx, // Start painting from a given line number. if ( parag->lineChanged() > -1 ) { - offsetY = zoomHandler->tqlayoutUnitToPixelY( parag->lineY( parag->lineChanged() ) - parag->topMargin() ); + offsetY = zoomHandler->layoutUnitToPixelY( parag->lineY( parag->lineChanged() ) - parag->topMargin() ); #ifdef DEBUG_PAINTING kdDebug(32500) << " Repainting from lineChanged=" << parag->lineChanged() << " -> adding " << offsetY << " to rect" << endl; #endif @@ -1384,7 +1384,7 @@ void KoTextDocument::drawParagWYSIWYG( TQPainter *p, KoTextParag *parag, int cx, } if ( needBrush ) { - int docright = zoomHandler->tqlayoutUnitToPixelX( parag->document()->x() + parag->document()->width() ); + int docright = zoomHandler->layoutUnitToPixelX( parag->document()->x() + parag->document()->width() ); #ifdef DEBUG_PAINTING // kdDebug(32500) << "KoTextDocument::drawParagWYSIWYG my rect is: " << rect << endl; #endif |