summaryrefslogtreecommitdiffstats
path: root/lib/kotext/KoTextFormat.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-16 09:56:31 -0600
committerTimothy Pearson <[email protected]>2011-12-16 09:56:31 -0600
commitc9cb4f487428aad5d8cda5e3a4b9ad87390d7e54 (patch)
tree1ee1912ac4bb966475f0db0f2a78678661b4b4a5 /lib/kotext/KoTextFormat.cpp
parent94844816550ad672ccfcdc25659c625546239998 (diff)
downloadkoffice-c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54.tar.gz
koffice-c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 94844816550ad672ccfcdc25659c625546239998.
Diffstat (limited to 'lib/kotext/KoTextFormat.cpp')
-rw-r--r--lib/kotext/KoTextFormat.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/kotext/KoTextFormat.cpp b/lib/kotext/KoTextFormat.cpp
index 2554d4ee..24214ae4 100644
--- a/lib/kotext/KoTextFormat.cpp
+++ b/lib/kotext/KoTextFormat.cpp
@@ -675,7 +675,7 @@ void KoTextFormat::save( KoGenStyle& gs, KoSavingContext& context, KoTextFormat
void KoTextFormat::update()
{
//kdDebug(32500) << this << " KoTextFormat::update " << fn.family() << " " << pointSize() << endl;
- m_key = TQString(); // invalidate key, recalc at the next key() call
+ m_key = TQString(); // tqinvalidate key, recalc at the next key() call
assert( d );
d->clearCache(); // i.e. recalc at the next screenFont[Metrics]() call
}
@@ -1179,8 +1179,8 @@ TQFont KoTextFormat::smallCapsFont( const KoTextZoomHandler* zh, bool applyZoom
int KoTextFormat::charWidth( const KoTextZoomHandler* zh, bool applyZoom, const KoTextStringChar* c,
const KoTextParag* parag, int i ) const
{
- ushort unicode = c->c.unicode();
- if ( !c->charStop || unicode == 0xad || unicode == 0x2028 )
+ ushort tqunicode = c->c.tqunicode();
+ if ( !c->charStop || tqunicode == 0xad || tqunicode == 0x2028 )
return 0;
Q_ASSERT( !c->isCustom() ); // actually it's a bit stupid to call this for custom items
if( c->isCustom() ) {
@@ -1209,13 +1209,13 @@ int KoTextFormat::charWidth( const KoTextZoomHandler* zh, bool applyZoom, const
pixelww = this->screenFontMetrics( zh ).width( displayedChar( c->c ) );
} else {
// Use the m_screenWidths[] array when possible, even faster
- Q_ASSERT( unicode < 256 );
- pixelww = d->m_screenWidths[ unicode ];
+ Q_ASSERT( tqunicode < 256 );
+ pixelww = d->m_screenWidths[ tqunicode ];
// Not in cache yet -> calculate
if ( pixelww == 0 ) {
pixelww = this->screenFontMetrics( zh ).width( displayedChar( c->c ) );
Q_ASSERT( pixelww < 65535 );
- d->m_screenWidths[ unicode ] = pixelww;
+ d->m_screenWidths[ tqunicode ] = pixelww;
}
}
}
@@ -1319,7 +1319,7 @@ TQString KoTextFormat::displayedString( const TQString& str )const
TQChar KoTextFormat::displayedChar( TQChar c )const
{
- if ( c.unicode() == 0xa0 ) // nbsp
+ if ( c.tqunicode() == 0xa0 ) // nbsp
return ' ';
switch ( m_attributeFont ) {
case ATT_NONE: