summaryrefslogtreecommitdiffstats
path: root/kmahjongg/Tileset.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
commit576eb4299a00bc053db35414406f46372a0f70f2 (patch)
tree4c030922d533821db464af566188e7d40cc8848c /kmahjongg/Tileset.cpp
parent0718336b6017d1a4fc1d626544180a5a2a29ddec (diff)
downloadtdegames-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 'kmahjongg/Tileset.cpp')
-rw-r--r--kmahjongg/Tileset.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kmahjongg/Tileset.cpp b/kmahjongg/Tileset.cpp
index c29f9701..b7e04f4e 100644
--- a/kmahjongg/Tileset.cpp
+++ b/kmahjongg/Tileset.cpp
@@ -1,7 +1,7 @@
#include <stdlib.h>
#include "Tileset.h"
-#include <qimage.h>
+#include <tqimage.h>
#define mini_width 20
@@ -94,7 +94,7 @@ Tileset::~Tileset() {
// method returns the address of the byte after the copied image
// and can be used to fill a larger array of tiles.
-QRgb *Tileset::copyTileImage(short tileX, short tileY, QRgb *to, QImage &from) {
+QRgb *Tileset::copyTileImage(short tileX, short tileY, QRgb *to, TQImage &from) {
QRgb *dest = to;
QRgb *src;
@@ -118,7 +118,7 @@ QRgb *Tileset::copyTileImage(short tileX, short tileY, QRgb *to, QImage &from) {
QRgb *Tileset::createTile(short x, short y,
- QRgb *det, QImage &allTiles , QRgb *face) {
+ QRgb *det, TQImage &allTiles , QRgb *face) {
QRgb *image ;
QRgb *to = det;
@@ -173,10 +173,10 @@ QRgb *Tileset::createTile(short x, short y,
// version, which can be used for mini tile requirements.
// this gives us a small tile for previews and showing
// removed tiles.
-void Tileset::createPixmap(QRgb *src, QPixmap &dest, bool scale, bool shadow)
+void Tileset::createPixmap(QRgb *src, TQPixmap &dest, bool scale, bool shadow)
{
- QImage buff;
+ TQImage buff;
QRgb *line;
buff.create(w, h, 32);
@@ -187,7 +187,7 @@ void Tileset::createPixmap(QRgb *src, QPixmap &dest, bool scale, bool shadow)
if (shadow) {
for (int spos=0; spos <w; spos++) {
- line[spos] = QColor(line[spos]).dark(133).rgb();
+ line[spos] = TQColor(line[spos]).dark(133).rgb();
}
}
@@ -208,10 +208,10 @@ void Tileset::createPixmap(QRgb *src, QPixmap &dest, bool scale, bool shadow)
// ---------------------------------------------------------
-bool Tileset::loadTileset( const QString& tilesetPath, const bool isPreview)
+bool Tileset::loadTileset( const TQString& tilesetPath, const bool isPreview)
{
- QImage qiTiles;
+ TQImage qiTiles;
QRgb *unsel;
QRgb *sel;
QRgb *nextSel=0;