summaryrefslogtreecommitdiffstats
path: root/lib/kotext/KoTextCustomItem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kotext/KoTextCustomItem.cpp')
-rw-r--r--lib/kotext/KoTextCustomItem.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/kotext/KoTextCustomItem.cpp b/lib/kotext/KoTextCustomItem.cpp
index e90eae47..f6eaf7de 100644
--- a/lib/kotext/KoTextCustomItem.cpp
+++ b/lib/kotext/KoTextCustomItem.cpp
@@ -81,16 +81,16 @@ void KoTextCustomItem::draw(TQPainter* p, int _x, int _y, int cx, int cy, int cw
KoTextStringChar* stringChar = paragraph()->at( charIndex );
// Convert x, y, cx, cy, cw and ch from Layout Units to pixels.
- int x = zh->tqlayoutUnitToPixelX(_x) /*+ stringChar->pixelxadj*/;
- int y = zh->tqlayoutUnitToPixelY(_y);
- cx = zh->tqlayoutUnitToPixelX(cx);
- cy = zh->tqlayoutUnitToPixelY(cy);
- cw = zh->tqlayoutUnitToPixelX(_x,cw);
- ch = zh->tqlayoutUnitToPixelY(_y,ch);
- int wpix = zh->tqlayoutUnitToPixelX(_x,width);
- int hpix = zh->tqlayoutUnitToPixelX(_y,height);
+ int x = zh->layoutUnitToPixelX(_x) /*+ stringChar->pixelxadj*/;
+ int y = zh->layoutUnitToPixelY(_y);
+ cx = zh->layoutUnitToPixelX(cx);
+ cy = zh->layoutUnitToPixelY(cy);
+ cw = zh->layoutUnitToPixelX(_x,cw);
+ ch = zh->layoutUnitToPixelY(_y,ch);
+ int wpix = zh->layoutUnitToPixelX(_x,width);
+ int hpix = zh->layoutUnitToPixelX(_y,height);
//kdDebug(32500)<<"After x :"<<x<<" y :"<<y<<" cx :"<<cx<<" cy :"<<cy<<" ch :"<<ch<<" cw :"<<cw<<endl;
- int ascentpix = zh->tqlayoutUnitToPixelY( _y, ascent() );
+ int ascentpix = zh->layoutUnitToPixelY( _y, ascent() );
KoTextFormat * fmt = stringChar->format();