summaryrefslogtreecommitdiffstats
path: root/ktux/spritepm.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:49:52 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:49:52 +0000
commitcfc42a28c327b96c6a2afee92af3bac1a479eb8a (patch)
treee3219edf5f827eaa4db3feb509a17846a1a5a752 /ktux/spritepm.cpp
parenta73fc4d7e66fe0824313aa4e9a650c4cddef6e9f (diff)
downloadtdetoys-cfc42a28c327b96c6a2afee92af3bac1a479eb8a.tar.gz
tdetoys-cfc42a28c327b96c6a2afee92af3bac1a479eb8a.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdetoys@1157650 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ktux/spritepm.cpp')
-rw-r--r--ktux/spritepm.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/ktux/spritepm.cpp b/ktux/spritepm.cpp
index ec9ba47..d933144 100644
--- a/ktux/spritepm.cpp
+++ b/ktux/spritepm.cpp
@@ -37,16 +37,16 @@ SpritePixmapManager::~SpritePixmapManager()
// Returns:
// pointer to pixmap if loaded successfully, 0 otherwise.
//
-const QPixmap *SpritePixmapManager::load(const QString & img)
+const TQPixmap *SpritePixmapManager::load(const TQString & img)
{
- QPixmap *pixmap = mPixmaps.find(img);
+ TQPixmap *pixmap = mPixmaps.find(img);
if (!pixmap)
{
// pixmap has not yet been loaded.
kdDebug() << "Reading pixmap: " << img << endl;
- QString path = mPixmapDir + QString("/") + img;
- pixmap = new QPixmap(path);
+ TQString path = mPixmapDir + TQString("/") + img;
+ pixmap = new TQPixmap(path);
if (!pixmap->isNull())
{
@@ -79,9 +79,9 @@ SpritePixmapManager *SpritePixmapManager::manager()
//===========================================================================
//
-SpritePixmapSequence::SpritePixmapSequence(QPtrList<QPixmap> pm, QPtrList<QPoint> hs,
- QMemArray<int> d)
- : QCanvasPixmapArray(pm, hs), mDelays(d)
+SpritePixmapSequence::SpritePixmapSequence(TQPtrList<TQPixmap> pm, TQPtrList<TQPoint> hs,
+ TQMemArray<int> d)
+ : TQCanvasPixmapArray(pm, hs), mDelays(d)
{
}
@@ -113,7 +113,7 @@ SpriteSequenceManager::~SpriteSequenceManager()
// pointer to sprite if loaded successfully, 0 otherwise.
//
SpritePixmapSequence *SpriteSequenceManager::load(KConfigBase &config,
- const QString & name)
+ const TQString & name)
{
SpritePixmapSequence *sprite = mSprites.find(name);
@@ -135,24 +135,24 @@ SpritePixmapSequence *SpriteSequenceManager::load(KConfigBase &config,
//
SpritePixmapSequence *SpriteSequenceManager::read(KConfigBase &config)
{
- QStrList strImages;
- QStrList strDelays;
- QPtrList<QPixmap> pixmaps;
- QPtrList<QPoint> hotspots;
+ TQStrList strImages;
+ TQStrList strDelays;
+ TQPtrList<TQPixmap> pixmaps;
+ TQPtrList<TQPoint> hotspots;
int frames = config.readListEntry("Images", strImages);
config.readListEntry("Delays", strDelays);
- QMemArray<int> delays(frames);
+ TQMemArray<int> delays(frames);
for (int i = 0; i < frames; i++)
{
- const QPixmap *pixmap =
+ const TQPixmap *pixmap =
SpritePixmapManager::manager()->load(strImages.at(i));
if (pixmap)
{
pixmaps.append(pixmap);
- hotspots.append(new QPoint(0,0));
+ hotspots.append(new TQPoint(0,0));
delays[i] = atoi(strDelays.at(i));
}
}