diff options
Diffstat (limited to 'kshisen/tileset.cpp')
-rw-r--r-- | kshisen/tileset.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kshisen/tileset.cpp b/kshisen/tileset.cpp index f44e2698..492cde79 100644 --- a/kshisen/tileset.cpp +++ b/kshisen/tileset.cpp @@ -27,7 +27,7 @@ #include <kmessagebox.h> #include <kdebug.h> -#include <qimage.h> +#include <tqimage.h> #include <algorithm> @@ -36,7 +36,7 @@ TileSet::TileSet() : scaledTiles(nTiles) { //loadTiles - QImage tileset(KGlobal::dirs()->findResource("appdata", "tileset.png")); + TQImage tileset(KGlobal::dirs()->findResource("appdata", "tileset.png")); if(tileset.isNull()) { KMessageBox::sorry(0, i18n("Cannot load tiles pixmap!")); @@ -76,7 +76,7 @@ void TileSet::resizeTiles(int maxWidth, int maxHeight) //kdDebug() << "tile size: " << maxWidth << "x" << maxHeight << endl; - QImage img; + TQImage img; for(int i = 0; i < nTiles; i++) { if(maxHeight == unscaledTileHeight()) @@ -88,17 +88,17 @@ void TileSet::resizeTiles(int maxWidth, int maxHeight) } } -const QPixmap &TileSet::tile(int n) const +const TQPixmap &TileSet::tile(int n) const { return scaledTiles[n]; } -QPixmap TileSet::highlightedTile(int n) const +TQPixmap TileSet::highlightedTile(int n) const { const double LIGHTEN_FACTOR = 1.3; // lighten the image - QImage img = scaledTiles[n].convertToImage().convertDepth(32); + TQImage img = scaledTiles[n].convertToImage().convertDepth(32); for(int y = 0; y < img.height(); y++) { @@ -110,7 +110,7 @@ QPixmap TileSet::highlightedTile(int n) const } } - QPixmap highlightedTile; + TQPixmap highlightedTile; highlightedTile.convertFromImage(img); return highlightedTile; |