summaryrefslogtreecommitdiffstats
path: root/src/kernel/qrichtext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/qrichtext.cpp')
-rw-r--r--src/kernel/qrichtext.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/kernel/qrichtext.cpp b/src/kernel/qrichtext.cpp
index 783b8918..59f13022 100644
--- a/src/kernel/qrichtext.cpp
+++ b/src/kernel/qrichtext.cpp
@@ -214,7 +214,7 @@ TQTextCursor *TQTextDeleteCommand::execute( TQTextCursor *c )
{
TQTextParagraph *s = doc ? doc->paragAt( id ) : parag;
if ( !s ) {
- qWarning( "can't locate parag at %d, last parag: %d", id, doc->lastParagraph()->paragId() );
+ tqWarning( "can't locate parag at %d, last parag: %d", id, doc->lastParagraph()->paragId() );
return 0;
}
@@ -242,7 +242,7 @@ TQTextCursor *TQTextDeleteCommand::unexecute( TQTextCursor *c )
{
TQTextParagraph *s = doc ? doc->paragAt( id ) : parag;
if ( !s ) {
- qWarning( "can't locate parag at %d, last parag: %d", id, doc->lastParagraph()->paragId() );
+ tqWarning( "can't locate parag at %d, last parag: %d", id, doc->lastParagraph()->paragId() );
return 0;
}
@@ -1733,10 +1733,10 @@ void TQTextDocument::setRichTextInternal( const TQString &text, TQTextCursor* cu
TQString bg = attr["background"];
const TQMimeSource* m = factory_->data( bg, contxt );
if ( !m ) {
- qWarning("TQRichText: no mimesource for %s", bg.latin1() );
+ tqWarning("TQRichText: no mimesource for %s", bg.latin1() );
} else {
if ( !TQImageDrag::decode( m, img ) ) {
- qWarning("TQTextImage: cannot decode %s", bg.latin1() );
+ tqWarning("TQTextImage: cannot decode %s", bg.latin1() );
}
}
if ( !img.isNull() ) {
@@ -2370,7 +2370,7 @@ TQString TQTextDocument::richText() const
TQStyleSheetItem* item_ol = styleSheet()->item("ol");
TQStyleSheetItem* item_li = styleSheet()->item("li");
if ( !item_p || !item_div || !item_ul || !item_ol || !item_li ) {
- qWarning( "TQTextEdit: cannot export HTML due to insufficient stylesheet (lack of p, div, ul, ol, or li)" );
+ tqWarning( "TQTextEdit: cannot export HTML due to insufficient stylesheet (lack of p, div, ul, ol, or li)" );
return TQString::null;
}
int pastListDepth = 0;
@@ -4415,7 +4415,7 @@ int TQTextParagraph::lineHeightOfChar( int i, int *bl, int *y ) const
--it;
}
- qWarning( "TQTextParagraph::lineHeightOfChar: couldn't find lh for %d", i );
+ tqWarning( "TQTextParagraph::lineHeightOfChar: couldn't find lh for %d", i );
return 15;
}
@@ -4441,7 +4441,7 @@ TQTextStringChar *TQTextParagraph::lineStartOfChar( int i, int *index, int *line
--l;
}
- qWarning( "TQTextParagraph::lineStartOfChar: couldn't find %d", i );
+ tqWarning( "TQTextParagraph::lineStartOfChar: couldn't find %d", i );
return 0;
}
@@ -4468,7 +4468,7 @@ TQTextStringChar *TQTextParagraph::lineStartOfLine( int line, int *index ) const
return &str->at( i );
}
- qWarning( "TQTextParagraph::lineStartOfLine: couldn't find %d", line );
+ tqWarning( "TQTextParagraph::lineStartOfLine: couldn't find %d", line );
return 0;
}
@@ -5407,12 +5407,12 @@ TQTextLineStart *TQTextFormatter::bidiReorderLine( TQTextParagraph * /*parag*/,
visual = (int *)malloc( length*sizeof( int ) );
}
- //qDebug("bidiReorderLine: length=%d (%d-%d)", length, start, last );
+ //tqDebug("bidiReorderLine: length=%d (%d-%d)", length, start, last );
TQTextStringChar *ch = startChar;
unsigned char *l = levels;
while ( ch <= lastChar ) {
- //qDebug( " level: %d", ch->bidiLevel );
+ //tqDebug( " level: %d", ch->bidiLevel );
*(l++) = (ch++)->bidiLevel;
}
@@ -5472,7 +5472,7 @@ TQTextLineStart *TQTextFormatter::bidiReorderLine( TQTextParagraph * /*parag*/,
ch->x = x + toAdd;
ch->rightToLeft = ch->bidiLevel % 2;
- //qDebug("visual: %d (%x) placed at %d rightToLeft=%d", visual[i], ch->c.unicode(), x +toAdd, ch->rightToLeft );
+ //tqDebug("visual: %d (%x) placed at %d rightToLeft=%d", visual[i], ch->c.unicode(), x +toAdd, ch->rightToLeft );
int ww = 0;
if ( ch->c.unicode() >= 32 || ch->c == '\t' || ch->c == '\n' || ch->isCustom() ) {
ww = text->width( start+visual[i] );
@@ -6178,7 +6178,7 @@ TQTextFormat *TQTextFormatCollection::format( const TQFont &f, const TQColor &c
cachedFormat->collection = this;
cKey.insert( cachedFormat->key(), cachedFormat );
if ( cachedFormat->key() != key )
- qWarning("ASSERT: keys for format not identical: '%s '%s'", cachedFormat->key().latin1(), key.latin1() );
+ tqWarning("ASSERT: keys for format not identical: '%s '%s'", cachedFormat->key().latin1(), key.latin1() );
return cachedFormat;
}
@@ -6597,11 +6597,11 @@ TQTextImage::TQTextImage( TQTextDocument *p, const TQMap<TQString, TQString> &at
const TQMimeSource* m =
factory.data( imageName, context );
if ( !m ) {
- qWarning("TQTextImage: no mimesource for %s", imageName.latin1() );
+ tqWarning("TQTextImage: no mimesource for %s", imageName.latin1() );
}
else {
if ( !TQImageDrag::decode( m, img ) ) {
- qWarning("TQTextImage: cannot decode %s", imageName.latin1() );
+ tqWarning("TQTextImage: cannot decode %s", imageName.latin1() );
}
}
@@ -7229,7 +7229,7 @@ static TQMap<TQString, TQChar> *htmlMap()
{
if ( !html_map ) {
html_map = new TQMap<TQString, TQChar>;
- qAddPostRoutine( qt_cleanup_html_map );
+ tqAddPostRoutine( qt_cleanup_html_map );
const Entity *ent = entitylist;
while( ent->code ) {