diff options
Diffstat (limited to 'libkdchart/KDDrawText.cpp')
-rw-r--r-- | libkdchart/KDDrawText.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libkdchart/KDDrawText.cpp b/libkdchart/KDDrawText.cpp index 2ef9308..a954a5b 100644 --- a/libkdchart/KDDrawText.cpp +++ b/libkdchart/KDDrawText.cpp @@ -163,13 +163,13 @@ void KDDrawText::drawRotatedTxt( TQPainter* painter, pFM = const_cast<TQFontMetrics*>(fontMet); } - int nLF = text.tqcontains('\n'); + int nLF = text.contains('\n'); if( INT_MAX == txtWidth ) { if( nLF ){ int tw; txtWidth = 0; int i0 = 0; - int iLF = text.tqfind('\n'); + int iLF = text.find('\n'); while( -1 != iLF ){ const TQRect r(pFM->boundingRect( text.mid(i0, iLF-i0) )); tw = r.width()+ 2; @@ -177,7 +177,7 @@ void KDDrawText::drawRotatedTxt( TQPainter* painter, if( tw > txtWidth ) txtWidth = tw; i0 = iLF+1; - iLF = text.tqfind('\n', i0); + iLF = text.find('\n', i0); } if( iLF < (int)text.length() ){ const TQRect r(pFM->boundingRect( text.mid( i0 ) )); |