diff options
Diffstat (limited to 'ktuberling/todraw.cpp')
-rw-r--r-- | ktuberling/todraw.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/ktuberling/todraw.cpp b/ktuberling/todraw.cpp index e12c9e1b..c88328a7 100644 --- a/ktuberling/todraw.cpp +++ b/ktuberling/todraw.cpp @@ -4,8 +4,8 @@ mailto:e.bischoff@noos.fr ------------------------------------------------------------- */ -#include <qbitmap.h> -#include <qpainter.h> +#include <tqbitmap.h> +#include <tqpainter.h> #include "todraw.h" @@ -24,7 +24,7 @@ ToDraw::ToDraw(const ToDraw &model) } // Constructor with arguments -ToDraw::ToDraw(int declaredNumber, const QRect &declaredPosition) +ToDraw::ToDraw(int declaredNumber, const TQRect &declaredPosition) : position(declaredPosition) { number = declaredNumber; @@ -42,17 +42,17 @@ ToDraw &ToDraw::operator=(const ToDraw &model) } // Draw an object previously laid down on the game board -void ToDraw::draw(QPainter &artist, const QRect &area, - const QRect *objectsLayout, - const QPixmap *gameboard, const QBitmap *masks) const +void ToDraw::draw(TQPainter &artist, const TQRect &area, + const TQRect *objectsLayout, + const TQPixmap *gameboard, const TQBitmap *masks) const { if (!position.intersects(area)) return; - QPixmap objectPixmap(objectsLayout[number].size()); - QBitmap shapeBitmap(objectsLayout[number].size()); + TQPixmap objectPixmap(objectsLayout[number].size()); + TQBitmap shapeBitmap(objectsLayout[number].size()); - bitBlt(&objectPixmap, QPoint(0, 0), gameboard, objectsLayout[number], Qt::CopyROP); - bitBlt(&shapeBitmap, QPoint(0, 0), masks, objectsLayout[number], Qt::CopyROP); + bitBlt(&objectPixmap, TQPoint(0, 0), gameboard, objectsLayout[number], Qt::CopyROP); + bitBlt(&shapeBitmap, TQPoint(0, 0), masks, objectsLayout[number], Qt::CopyROP); objectPixmap.setMask(shapeBitmap); artist.drawPixmap(position.topLeft(), objectPixmap); } |