summaryrefslogtreecommitdiffstats
path: root/lib/kotext/KoTextFormatter.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-21 14:05:41 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-21 14:05:41 -0600
commit2d6954f69caf63ed5057bd8e1405a65d7d970292 (patch)
tree88e6436b2e81d4e68313f02a9021054252e14cc4 /lib/kotext/KoTextFormatter.cpp
parentf0de9e167e289ab7dc33e57f077c1f04ec7c68c8 (diff)
downloadkoffice-2d6954f69caf63ed5057bd8e1405a65d7d970292.tar.gz
koffice-2d6954f69caf63ed5057bd8e1405a65d7d970292.zip
Rename obsolete tq methods to standard names
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 d978ba434..552bcf27d 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++;