summaryrefslogtreecommitdiffstats
path: root/lib/kotext/KoTextFormatter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kotext/KoTextFormatter.cpp')
-rw-r--r--lib/kotext/KoTextFormatter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/kotext/KoTextFormatter.cpp b/lib/kotext/KoTextFormatter.cpp
index d978ba43..552bcf27 100644
--- a/lib/kotext/KoTextFormatter.cpp
+++ b/lib/kotext/KoTextFormatter.cpp
@@ -196,7 +196,7 @@ bool KoTextFormatterCore::format()
// but with counters/margins this might be different). This is why
// we call determineCharWidth() again from within the loop.
TQPair<int, int> widths = determineCharWidth();
- int ww = widths.first; // width in tqlayout units
+ int ww = widths.first; // width in layout units
#ifndef REF_IS_LU
int pixelww = widths.second; // width in pixels
#endif
@@ -516,11 +516,11 @@ bool KoTextFormatterCore::format()
spaceAfterLine -= c->width;
//else
- if ( c->c.tqunicode() == 0xad || hyphenated ) // soft hyphen or hyphenation
+ if ( c->c.unicode() == 0xad || hyphenated ) // soft hyphen or hyphenation
{
// Recalculate its width, the hyphen will appear finally (important for the parag rect)
int width = KoTextZoomHandler::ptToLayoutUnitPt( c->format()->refFontMetrics().width( TQChar(0xad) ) );
- if ( c->c.tqunicode() == 0xad )
+ if ( c->c.unicode() == 0xad )
c->width = width;
spaceAfterLine -= width;
}
@@ -934,7 +934,7 @@ KoTextParagLineStart *KoTextFormatterCore::koBidiReorderLine(
str.setUnicode( 0, last - start + 1 );
// fill string with logically ordered chars.
KoTextStringChar *ch = startChar;
- TQChar *qch = (TQChar *)str.tqunicode();
+ TQChar *qch = (TQChar *)str.unicode();
while ( ch <= lastChar ) {
*qch = ch->c;
qch++;