From c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 16 Dec 2011 09:56:31 -0600 Subject: Revert "Rename a number of old tq methods that are no longer tq specific" This reverts commit 94844816550ad672ccfcdc25659c625546239998. --- kexi/kexiutils/utils.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'kexi/kexiutils/utils.cpp') diff --git a/kexi/kexiutils/utils.cpp b/kexi/kexiutils/utils.cpp index dca4998b5..7a1ab0f7a 100644 --- a/kexi/kexiutils/utils.cpp +++ b/kexi/kexiutils/utils.cpp @@ -226,7 +226,7 @@ TQMap KexiUtils::deserializeMap(const TQString& string) TQCString cstr(string.latin1()); TQByteArray array( size ); for (uint i=0; i map; TQDataStream ds(array, IO_ReadOnly); @@ -244,17 +244,17 @@ TQString KexiUtils::stringToFileName(const TQString& string) void KexiUtils::simpleCrypt(TQString& string) { for (uint i=0; idrawPixmap(pos, pixmapBuffer); @@ -307,7 +307,7 @@ void KexiUtils::drawPixmap( TQPainter& p, int lineWidth, const TQRect& rect, else { if (!fast) { pixmapBuffer.resize(rect.size()-TQSize(lineWidth, lineWidth)); - p2.begin(TQT_TQPAINTDEVICE(&pixmapBuffer), p.device()); + p2.tqbegin(TQT_TQPAINTDEVICE(&pixmapBuffer), p.tqdevice()); p2.drawPixmap(TQRect(rect.x(), rect.y(), w, h), pixmap); } else @@ -315,7 +315,7 @@ void KexiUtils::drawPixmap( TQPainter& p, int lineWidth, const TQRect& rect, } } else { - int hAlign = TQApplication::horizontalAlignment( alignment ); + int hAlign = TQApplication::horizontalAlignment( tqalignment ); if ( hAlign & TQt::AlignRight ) pos.setX(pos.x() + w-pixmap.width()); else if ( hAlign & TQt::AlignHCenter ) @@ -323,9 +323,9 @@ void KexiUtils::drawPixmap( TQPainter& p, int lineWidth, const TQRect& rect, else //left, etc. pos.setX(pos.x()); - if ( alignment & TQt::AlignBottom ) + if ( tqalignment & TQt::AlignBottom ) pos.setY(pos.y() + h-pixmap.height()); - else if ( alignment & TQt::AlignVCenter ) + else if ( tqalignment & TQt::AlignVCenter ) pos.setY(pos.y() + h/2-pixmap.height()/2); else //top, etc. pos.setY(pos.y()); @@ -339,8 +339,8 @@ void KexiUtils::drawPixmap( TQPainter& p, int lineWidth, const TQRect& rect, bitBlt( p.device(), // pos.x(), // pos.y(), - (int)p.worldMatrix().dx() + rect.x() + lineWidth + pos.x(), - (int)p.worldMatrix().dy() + rect.y() + lineWidth + pos.y(), + (int)p.tqworldMatrix().dx() + rect.x() + lineWidth + pos.x(), + (int)p.tqworldMatrix().dy() + rect.y() + lineWidth + pos.y(), &pixmapBuffer); } } -- cgit v1.2.3