summaryrefslogtreecommitdiffstats
path: root/ktux/spriteanim.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/spriteanim.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/spriteanim.cpp')
-rw-r--r--ktux/spriteanim.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/ktux/spriteanim.cpp b/ktux/spriteanim.cpp
index 2c21838..fdbcd00 100644
--- a/ktux/spriteanim.cpp
+++ b/ktux/spriteanim.cpp
@@ -14,8 +14,8 @@
//
// SpriteObject stores the animations that create an object
//
-SpriteObject::SpriteObject(SpritePixmapSequence *seq, QCanvas *c )
- : QCanvasSprite(seq, c),
+SpriteObject::SpriteObject(SpritePixmapSequence *seq, TQCanvas *c )
+ : TQCanvasSprite(seq, c),
mCycle(0),
mLifeSpan(-1),
mSeq(seq)
@@ -39,7 +39,7 @@ void SpriteObject::age()
void SpriteObject::setBounds( int x1, int y1, int x2, int y2 )
{
- mBound = QRect( x1, y1, x2-x1, y2-y1 );
+ mBound = TQRect( x1, y1, x2-x1, y2-y1 );
}
bool SpriteObject::outOfBounds() const
@@ -58,7 +58,7 @@ SpriteDef::SpriteDef(KConfigBase &config)
}
//---------------------------------------------------------------------------
-SpriteObject *SpriteDef::create( QCanvas *c )
+SpriteObject *SpriteDef::create( TQCanvas *c )
{
SpriteObject *sprite = 0;
if (mSeq)
@@ -92,7 +92,7 @@ void SpriteDef::read(KConfigBase &config)
mEndY.set(config.readEntry("EndY", "10000"));
mLifeSpan = config.readNumEntry("LifeSpan", -1);
mZ = config.readNumEntry("Z", 1);
- QString animation = config.readEntry("Animation", "");
+ TQString animation = config.readEntry("Animation", "");
mSeq = SpriteSequenceManager::manager()->load(config, animation);
kdDebug() << "Set Z = " << mZ << endl;
}
@@ -101,7 +101,7 @@ void SpriteDef::read(KConfigBase &config)
//
// SpriteGroup
//
-SpriteGroup::SpriteGroup(QCanvas *c, KConfigBase &config)
+SpriteGroup::SpriteGroup(TQCanvas *c, KConfigBase &config)
: mCanvas(c)
{
mAvailable.setAutoDelete(true);
@@ -112,7 +112,7 @@ SpriteGroup::SpriteGroup(QCanvas *c, KConfigBase &config)
//---------------------------------------------------------------------------
void SpriteGroup::next()
{
- QPtrListIterator<SpriteObject> it(mActive);
+ TQPtrListIterator<SpriteObject> it(mActive);
for (; it.current(); ++it)
{
@@ -148,7 +148,7 @@ void SpriteGroup::read(KConfigBase &config)
mRefresh.set(config.readEntry("Refresh", "1000"));
- QStrList anims;
+ TQStrList anims;
config.readListEntry("Animations", anims);
for (anims.first(); anims.current(); anims.next())