summaryrefslogtreecommitdiffstats
path: root/src/kernel/qtextengine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/qtextengine.cpp')
-rw-r--r--src/kernel/qtextengine.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/kernel/qtextengine.cpp b/src/kernel/qtextengine.cpp
index 318722c97..adeafb887 100644
--- a/src/kernel/qtextengine.cpp
+++ b/src/kernel/qtextengine.cpp
@@ -157,7 +157,7 @@ static void tqAppendItems(TQTextEngine *engine, int &start, int &stop, BidiContr
if ( start > stop ) {
// #### the algorithm is currently not really safe against this. Still needs fixing.
-// qWarning( "Bidi: appendItems() internal error" );
+// tqWarning( "Bidi: appendItems() internal error" );
return;
}
@@ -177,7 +177,7 @@ static void tqAppendItems(TQTextEngine *engine, int &start, int &stop, BidiContr
}
#if (BIDI_DEBUG >= 1)
- qDebug("new run: dir=%s from %d, to %d level = %d\n", directions[dir], start, stop, level);
+ tqDebug("new run: dir=%s from %d, to %d level = %d\n", directions[dir], start, stop, level);
#endif
TQFont::Script script = TQFont::NoScript;
TQScriptItem item;
@@ -279,8 +279,8 @@ static void bidiItemize( TQTextEngine *engine, bool rightToLeft, int mode )
status.last = status.lastStrong;
status.dir = sdir;
#if (BIDI_DEBUG >= 2)
- qDebug("---- bidiReorder --- '%s'", engine->string.utf8().data());
- qDebug("rightToLeft = %d", rightToLeft);
+ tqDebug("---- bidiReorder --- '%s'", engine->string.utf8().data());
+ tqDebug("rightToLeft = %d", rightToLeft);
#endif
@@ -861,7 +861,7 @@ static void calcLineBreaks(const TQString &str, TQCharAttributes *charAttributes
softBreak = (cls == TQUnicodeTables::LineBreak_SP);
else
softBreak = (brk == Dbk);
-// qDebug("char = %c %04x, cls=%d, ncls=%d, brk=%d soft=%d", uc[i].cell(), uc[i].unicode(), cls, ncls, brk, charAttributes[i].softBreak);
+// tqDebug("char = %c %04x, cls=%d, ncls=%d, brk=%d soft=%d", uc[i].cell(), uc[i].unicode(), cls, ncls, brk, charAttributes[i].softBreak);
charAttributes[i].softBreak = softBreak;
charAttributes[i].whiteSpace = FALSE;
charAttributes[i].charStop = TRUE;
@@ -1044,7 +1044,7 @@ void TQTextEngine::splitItem( int item, int pos )
oldItem.width = w;
}
-// qDebug("split at position %d itempos=%d", pos, item );
+// tqDebug("split at position %d itempos=%d", pos, item );
}
@@ -1052,12 +1052,12 @@ int TQTextEngine::width( int from, int len ) const
{
int w = 0;
-// qDebug("TQTextEngine::width( from = %d, len = %d ), numItems=%d, strleng=%d", from, len, items.size(), string.length() );
+// tqDebug("TQTextEngine::width( from = %d, len = %d ), numItems=%d, strleng=%d", from, len, items.size(), string.length() );
for ( int i = 0; i < items.size(); i++ ) {
TQScriptItem *si = &items[i];
int pos = si->position;
int ilen = length( i );
-// qDebug("item %d: from %d len %d", i, pos, ilen );
+// tqDebug("item %d: from %d len %d", i, pos, ilen );
if ( pos >= from + len )
break;
if ( pos + ilen > from ) {
@@ -1089,13 +1089,13 @@ int TQTextEngine::width( int from, int len ) const
charEnd++;
glyphEnd = (charEnd == ilen) ? si->num_glyphs : logClusters[charEnd];
-// qDebug("char: start=%d end=%d / glyph: start = %d, end = %d", charFrom, charEnd, glyphStart, glyphEnd );
+// tqDebug("char: start=%d end=%d / glyph: start = %d, end = %d", charFrom, charEnd, glyphStart, glyphEnd );
for ( int i = glyphStart; i < glyphEnd; i++ )
w += advances[i];
}
}
}
-// qDebug(" --> w= %d ", w );
+// tqDebug(" --> w= %d ", w );
return w;
}