Removed obsolete Qt2's TQList/TQListIterator classes and replaced

with TQt3's TQPtrList/TQPtrListIterator ones.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/2/head
Michele Calgaro 6 years ago
parent c9af7d35b5
commit 4648ea0c6a
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -396,8 +396,8 @@ void KGrCanvas::initView()
#else
TQPixmap * pm;
TQPoint * pt;
TQList<TQPixmap> pmList;
TQList<TQPoint> ptList;
TQPtrList<TQPixmap> pmList;
TQPtrList<TQPoint> ptList;
pt = new TQPoint (0, 0); // "Hot spot" not used in KGoldrunner.
@ -469,7 +469,7 @@ void KGrCanvas::initView()
#ifdef QT3
enemySprites = new TQPtrList<TQCanvasSprite> ();
#else
enemySprites = new TQList<TQCanvasSprite> ();
enemySprites = new TQPtrList<TQCanvasSprite> ();
#endif
enemySprites->setAutoDelete(TRUE);
}

@ -96,7 +96,7 @@ private:
#ifdef QT3
TQPtrList<TQCanvasSprite> * enemySprites;
#else
TQList<TQCanvasSprite> * enemySprites;
TQPtrList<TQCanvasSprite> * enemySprites;
#endif
void initView();

@ -713,7 +713,7 @@ void KGrHero::digRight(){
#ifdef QT3
void KGrHero::setEnemyList(TQPtrList<KGrEnemy> *e)
#else
void KGrHero::setEnemyList(TQList<KGrEnemy> *e)
void KGrHero::setEnemyList(TQPtrList<KGrEnemy> *e)
#endif
{
enemies = e;
@ -1673,7 +1673,7 @@ bool KGrEnemy::willNotFall (int x, int y)
#ifdef QT3
void KGrEnemy::setEnemyList(TQPtrList<KGrEnemy> *e)
#else
void KGrEnemy::setEnemyList(TQList<KGrEnemy> *e)
void KGrEnemy::setEnemyList(TQPtrList<KGrEnemy> *e)
#endif
{
enemies = e;

@ -116,7 +116,7 @@ public:
#ifdef QT3
void setEnemyList(TQPtrList<KGrEnemy> *);
#else
void setEnemyList(TQList<KGrEnemy> *);
void setEnemyList(TQPtrList<KGrEnemy> *);
#endif
void init(int,int);
void setKey(Direction);
@ -133,7 +133,7 @@ private:
#ifdef QT3
TQPtrList<KGrEnemy> *enemies;
#else
TQList<KGrEnemy> *enemies;
TQPtrList<KGrEnemy> *enemies;
#endif
KGrCanvas * heroView;
bool standOnEnemy();
@ -172,7 +172,7 @@ public:
#ifdef QT3
void setEnemyList(TQPtrList<KGrEnemy> *);
#else
void setEnemyList(TQList<KGrEnemy> *);
void setEnemyList(TQPtrList<KGrEnemy> *);
#endif
virtual void init(int,int);
static int WALKDELAY;
@ -192,7 +192,7 @@ private:
#ifdef QT3
TQPtrList<KGrEnemy> *enemies;
#else
TQList<KGrEnemy> *enemies;
TQPtrList<KGrEnemy> *enemies;
#endif
bool standOnEnemy();
bool bumpingFriend();

@ -158,7 +158,7 @@ private:
#ifdef QT3
TQPtrList<KGrEnemy> enemies; // The list of enemies.
#else
TQList<KGrEnemy> enemies; // The list of enemies.
TQPtrList<KGrEnemy> enemies; // The list of enemies.
#endif
int enemyCount; // How many enemies.
KGrEnemy * enemy; // One of the enemies.
@ -250,7 +250,7 @@ private:
#ifdef QT3
TQPtrList<KGrCollection> collections; // List of ALL collections.
#else
TQList<KGrCollection> collections; // List of ALL collections.
TQPtrList<KGrCollection> collections; // List of ALL collections.
#endif
KGrCollection * collection; // Collection currently in use.

Loading…
Cancel
Save