From 84ace1135cac57993b72fee7105b92def1638d32 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 16 Dec 2011 09:58:53 -0600 Subject: Revert "Rename a number of old tq methods that are no longer tq specific" This reverts commit 97d1732e257f8700488d7ca1660ae7eba8fc6065. --- ktuberling/playground.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'ktuberling/playground.cpp') diff --git a/ktuberling/playground.cpp b/ktuberling/playground.cpp index 62d2b107..586f143f 100644 --- a/ktuberling/playground.cpp +++ b/ktuberling/playground.cpp @@ -94,7 +94,7 @@ void PlayGround::repaintAll() editableArea.width() + 20, editableArea.height() + 20); - repaint(dirtyArea, false); + tqrepaint(dirtyArea, false); } // Undo last action @@ -255,10 +255,10 @@ void PlayGround::mousePressEvent( TQMouseEvent *event ) int draggedNumber = draggedObject.getNumber(); TQPixmap object(objectsLayout[draggedNumber].size()); - TQBitmap shape(objectsLayout[draggedNumber].size()); + TQBitmap tqshape(objectsLayout[draggedNumber].size()); bitBlt(&object, TQPoint(0, 0), &gameboard, objectsLayout[draggedNumber], TQt::CopyROP); - bitBlt(&shape, TQPoint(0, 0), &masks, objectsLayout[draggedNumber], TQt::CopyROP); - object.setMask(shape); + bitBlt(&tqshape, TQPoint(0, 0), &masks, objectsLayout[draggedNumber], TQt::CopyROP); + object.setMask(tqshape); draggedCursor = new TQCursor(object, position.x(), position.y()); setCursor(*draggedCursor); @@ -320,7 +320,7 @@ void PlayGround::mouseReleaseEvent( TQMouseEvent *event ) // Repaint the editable area position.moveBy(XMARGIN, YMARGIN); - repaint(position, false); + tqrepaint(position, false); } @@ -506,7 +506,7 @@ void PlayGround::loadFailure() exit(-1); } -// Set up play ground's geometry +// Set up play ground's tqgeometry void PlayGround::setupGeometry() { int width = gameboard.width() + 2 * XMARGIN, @@ -547,15 +547,15 @@ bool PlayGround::zone(TQPoint &position) draggedObject = *currentObject; draggedNumber = draggedObject.getNumber(); - TQBitmap shape(objectsLayout[draggedNumber].size()); + TQBitmap tqshape(objectsLayout[draggedNumber].size()); TQPoint relative(position.x() - toUpdate.x(), position.y() - toUpdate.y()); - bitBlt(&shape, TQPoint(0, 0), &masks, objectsLayout[draggedNumber], TQt::CopyROP); - if (!shape.convertToImage().pixelIndex(relative.x(), relative.y())) continue; + bitBlt(&tqshape, TQPoint(0, 0), &masks, objectsLayout[draggedNumber], TQt::CopyROP); + if (!tqshape.convertToImage().pixelIndex(relative.x(), relative.y())) continue; toDraw.remove(draggedZOrder); toUpdate.moveBy(XMARGIN, YMARGIN); - repaint(toUpdate, false); + tqrepaint(toUpdate, false); position = relative; -- cgit v1.2.1