summaryrefslogtreecommitdiffstats
path: root/kmahjongg/Tileset.cpp
diff options
context:
space:
mode:
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;