From 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 13 Apr 2011 00:46:47 +0000 Subject: Initial conversion of kdepim to TQt This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kaddressbook/thumbnailcreator/ldifvcardcreator.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'kaddressbook/thumbnailcreator/ldifvcardcreator.cpp') diff --git a/kaddressbook/thumbnailcreator/ldifvcardcreator.cpp b/kaddressbook/thumbnailcreator/ldifvcardcreator.cpp index 6a8e495d5..eb6b76700 100644 --- a/kaddressbook/thumbnailcreator/ldifvcardcreator.cpp +++ b/kaddressbook/thumbnailcreator/ldifvcardcreator.cpp @@ -184,9 +184,9 @@ bool VCard_LDIFCreator::createImageSmall() // render the information TQRect rect; int rest = mPixmap.width() - (numCharsPerLine * chSize.width()); - xborder = QMAX( xborder, rest / 2 ); // center horizontally + xborder = TQMAX( xborder, rest / 2 ); // center horizontally rest = mPixmap.height() - (numLines * chSize.height()); - yborder = QMAX( yborder, rest / 2 ); // center vertically + yborder = TQMAX( yborder, rest / 2 ); // center vertically // end centering int x = xborder, y = yborder; // where to paint the characters @@ -207,7 +207,7 @@ bool VCard_LDIFCreator::createImageSmall() // after starting a new line, we also jump to the next // physical newline in the file if we don't come from one if ( !newLine ) { - int pos = text.find( '\n', i ); + int pos = text.tqfind( '\n', i ); if ( pos > (int) i ) i = pos +1; } @@ -228,7 +228,7 @@ bool VCard_LDIFCreator::createImageSmall() rect = mSplitter->coordinates( ch ); if ( !rect.isEmpty() ) - bitBlt( &mPixmap, TQPoint(x,y), fontPixmap, rect, Qt::CopyROP ); + bitBlt( &mPixmap, TQPoint(x,y), fontPixmap, rect, TQt::CopyROP ); x += xOffset; // next character } -- cgit v1.2.1