summaryrefslogtreecommitdiffstats
path: root/tdeui/kwordwrap.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-11-13 20:33:00 +0900
committerMichele Calgaro <[email protected]>2023-11-15 23:44:25 +0900
commitc8ece3630d4d21acaf1749fc2cf660a0463070c3 (patch)
treebae3d3c70886ceeffd914cac031dfeab532a607a /tdeui/kwordwrap.cpp
parent419c185be746df8bba59fe5de991b4a2b3977897 (diff)
downloadtdelibs-c8ece3630d4d21acaf1749fc2cf660a0463070c3.tar.gz
tdelibs-c8ece3630d4d21acaf1749fc2cf660a0463070c3.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'tdeui/kwordwrap.cpp')
-rw-r--r--tdeui/kwordwrap.cpp8
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()) ) {