diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:42:31 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:42:31 +0000 |
commit | 576eb4299a00bc053db35414406f46372a0f70f2 (patch) | |
tree | 4c030922d533821db464af566188e7d40cc8848c /ktuberling/todraw.cpp | |
parent | 0718336b6017d1a4fc1d626544180a5a2a29ddec (diff) | |
download | tdegames-576eb4299a00bc053db35414406f46372a0f70f2.tar.gz tdegames-576eb4299a00bc053db35414406f46372a0f70f2.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1157643 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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:[email protected] ------------------------------------------------------------- */ -#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); } |