From cfc42a28c327b96c6a2afee92af3bac1a479eb8a Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:49:52 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdetoys@1157650 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- ktux/spritepm.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'ktux/spritepm.cpp') 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 pm, QPtrList hs, - QMemArray d) - : QCanvasPixmapArray(pm, hs), mDelays(d) +SpritePixmapSequence::SpritePixmapSequence(TQPtrList pm, TQPtrList hs, + TQMemArray 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 pixmaps; - QPtrList hotspots; + TQStrList strImages; + TQStrList strDelays; + TQPtrList pixmaps; + TQPtrList hotspots; int frames = config.readListEntry("Images", strImages); config.readListEntry("Delays", strDelays); - QMemArray delays(frames); + TQMemArray 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)); } } -- cgit v1.2.1