summaryrefslogtreecommitdiffstats
path: root/ktux/spritepm.h
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.h
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.h')
-rw-r--r--ktux/spritepm.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/ktux/spritepm.h b/ktux/spritepm.h
index e9f24be..da3be7e 100644
--- a/ktux/spritepm.h
+++ b/ktux/spritepm.h
@@ -12,9 +12,9 @@
#include <config.h>
#endif
-#include <qdict.h>
-#include <qpixmap.h>
-#include <qcanvas.h>
+#include <tqdict.h>
+#include <tqpixmap.h>
+#include <tqcanvas.h>
#include <kconfigbase.h>
#include <ksimpleconfig.h>
@@ -28,19 +28,19 @@ public:
SpritePixmapManager();
virtual ~SpritePixmapManager();
- void setPixmapDir(const QString &dir)
+ void setPixmapDir(const TQString &dir)
{ mPixmapDir = dir; }
void reset()
{ mPixmapDir = "."; mPixmaps.clear(); }
- const QPixmap *load(const QString & img);
- const QPixmap *pixmap(const char *img) const
+ const TQPixmap *load(const TQString & img);
+ const TQPixmap *pixmap(const char *img) const
{ return mPixmaps.find(img); }
static SpritePixmapManager *manager();
public:
- QString mPixmapDir; // get pixmaps from here
- QDict<QPixmap> mPixmaps; // list of pixmaps
+ TQString mPixmapDir; // get pixmaps from here
+ TQDict<TQPixmap> mPixmaps; // list of pixmaps
static SpritePixmapManager *mManager; // static pointer to instance
};
@@ -49,12 +49,12 @@ public:
class SpritePixmapSequence : public QCanvasPixmapArray
{
public:
- SpritePixmapSequence(QPtrList<QPixmap> pm, QPtrList<QPoint> hs, QMemArray<int> d);
+ SpritePixmapSequence(TQPtrList<TQPixmap> pm, TQPtrList<TQPoint> hs, TQMemArray<int> d);
int delay(int i) const { return mDelays[i]; }
protected:
- QMemArray<int> mDelays;
+ TQMemArray<int> mDelays;
};
//---------------------------------------------------------------------------
@@ -67,7 +67,7 @@ public:
SpriteSequenceManager();
~SpriteSequenceManager();
- SpritePixmapSequence *load(KConfigBase &config, const QString & name);
+ SpritePixmapSequence *load(KConfigBase &config, const TQString & name);
SpritePixmapSequence *sprite(const char *name)
{ return mSprites.find(name); }
@@ -77,7 +77,7 @@ protected:
SpritePixmapSequence *read(KConfigBase &config);
protected:
- QDict<SpritePixmapSequence> mSprites;
+ TQDict<SpritePixmapSequence> mSprites;
static SpriteSequenceManager *mManager;
};