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 /kshisen/tileset.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 '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; |