diff options
Diffstat (limited to 'libkdchart/KDChartTextPiece.cpp')
-rw-r--r-- | libkdchart/KDChartTextPiece.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libkdchart/KDChartTextPiece.cpp b/libkdchart/KDChartTextPiece.cpp index b95165f..ddb9c0f 100644 --- a/libkdchart/KDChartTextPiece.cpp +++ b/libkdchart/KDChartTextPiece.cpp @@ -76,11 +76,11 @@ KDChartTextPiece::KDChartTextPiece( TQPainter *p, const TQString& text, const TQ if( TQStyleSheet::mightBeRichText( text ) ) { _isRichText = true; _richText = new TQSimpleRichText( text, font ); - //qDebug( "richtext width %s", TQString::number(_richText->width()).latin1()); - //qDebug( "richtext height %s", TQString::number(_richText->height()).latin1()); + //tqDebug( "richtext width %s", TQString::number(_richText->width()).latin1()); + //tqDebug( "richtext height %s", TQString::number(_richText->height()).latin1()); _richText->adjustSize(); - //qDebug( "richtext width %s", TQString::number(_richText->width()).latin1()); - //qDebug( "richtext height %s", TQString::number(_richText->height()).latin1()); + //tqDebug( "richtext width %s", TQString::number(_richText->width()).latin1()); + //tqDebug( "richtext height %s", TQString::number(_richText->height()).latin1()); } else { _isRichText = false; @@ -91,13 +91,13 @@ KDChartTextPiece::KDChartTextPiece( TQPainter *p, const TQString& text, const TQ _dirtyMetrics = (p == 0); if( _dirtyMetrics ) { _metrics = new TQFontMetrics( font ); - //qDebug("dirty metrics text: %s", text.latin1()); + //tqDebug("dirty metrics text: %s", text.latin1()); } else{ p->save(); p->setFont( font ); _metrics = new TQFontMetrics( p->fontMetrics() ); - //qDebug ( "drawing metrics text: %s", text.latin1() ); + //tqDebug ( "drawing metrics text: %s", text.latin1() ); //p->drawRect( _metrics->boundingRect( text) ); //p->drawText( _metrics->boundingRect(text).bottomRight(), text); p->restore(); @@ -160,12 +160,12 @@ int KDChartTextPiece::height() const { if( _isRichText ) { - //qDebug ("_richText height %s", TQString::number(_richText->height()).latin1()); + //tqDebug ("_richText height %s", TQString::number(_richText->height()).latin1()); return _richText->height(); } else { - //qDebug ("_metrics height %s", TQString::number(_metrics->height()).latin1()); + //tqDebug ("_metrics height %s", TQString::number(_metrics->height()).latin1()); return _metrics->height(); } } |