diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-13 20:33:00 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-15 23:47:11 +0900 |
commit | 303b6445011a6ed10c48ac6e1eda415e5c371264 (patch) | |
tree | aded2a8ee5046176d3295bbf1f90f5dd73746677 /tdeui/kwordwrap.cpp | |
parent | 141ced0c41af8726eedac425ea24cd162bcff862 (diff) | |
download | tdelibs-303b6445011a6ed10c48ac6e1eda415e5c371264.tar.gz tdelibs-303b6445011a6ed10c48ac6e1eda415e5c371264.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit c8ece3630d4d21acaf1749fc2cf660a0463070c3)
Diffstat (limited to 'tdeui/kwordwrap.cpp')
-rw-r--r-- | tdeui/kwordwrap.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tdeui/kwordwrap.cpp b/tdeui/kwordwrap.cpp index de031c966..471a7227a 100644 --- a/tdeui/kwordwrap.cpp +++ b/tdeui/kwordwrap.cpp @@ -236,9 +236,9 @@ void KWordWrap::drawText( TQPainter *painter, int textX, int textY, int flags ) break; int end = (*it); int x = textX; - if ( flags & Qt::AlignHCenter ) + if ( flags & TQt::AlignHCenter ) x += ( maxwidth - *itw ) / 2; - else if ( flags & Qt::AlignRight ) + else if ( flags & TQt::AlignRight ) x += maxwidth - *itw; painter->drawText( x, textY + y + ascent, m_text.mid( start, end - start + 1 ) ); y += height; @@ -246,9 +246,9 @@ void KWordWrap::drawText( TQPainter *painter, int textX, int textY, int flags ) } // Draw the last line int x = textX; - if ( flags & Qt::AlignHCenter ) + if ( flags & TQt::AlignHCenter ) x += ( maxwidth - *itw ) / 2; - else if ( flags & Qt::AlignRight ) + else if ( flags & TQt::AlignRight ) x += maxwidth - *itw; if ( (d->m_constrainingRect.height() < 0) || ((y + height) <= d->m_constrainingRect.height()) ) { |