summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2018-10-17 23:25:50 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2018-10-17 23:25:50 +0900
commit4648ea0c6a25f5c64076e9939d976be3820423ec (patch)
treebc03c9e7ceebc63fe81bdc662e5501bb8d979f6b
parentc9af7d35b5e4285b5bdf64661268502320ef4255 (diff)
downloadtdegames-4648ea0c6a25f5c64076e9939d976be3820423ec.tar.gz
tdegames-4648ea0c6a25f5c64076e9939d976be3820423ec.zip
Removed obsolete Qt2's TQList/TQListIterator classes and replaced
with TQt3's TQPtrList/TQPtrListIterator ones. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--kgoldrunner/src/kgrcanvas.cpp6
-rw-r--r--kgoldrunner/src/kgrcanvas.h2
-rw-r--r--kgoldrunner/src/kgrfigure.cpp4
-rw-r--r--kgoldrunner/src/kgrfigure.h8
-rw-r--r--kgoldrunner/src/kgrgame.h4
5 files changed, 12 insertions, 12 deletions
diff --git a/kgoldrunner/src/kgrcanvas.cpp b/kgoldrunner/src/kgrcanvas.cpp
index cd364d15..bd642214 100644
--- a/kgoldrunner/src/kgrcanvas.cpp
+++ b/kgoldrunner/src/kgrcanvas.cpp
@@ -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);
}
diff --git a/kgoldrunner/src/kgrcanvas.h b/kgoldrunner/src/kgrcanvas.h
index bf9cb1cf..884fc40e 100644
--- a/kgoldrunner/src/kgrcanvas.h
+++ b/kgoldrunner/src/kgrcanvas.h
@@ -96,7 +96,7 @@ private:
#ifdef QT3
TQPtrList<TQCanvasSprite> * enemySprites;
#else
- TQList<TQCanvasSprite> * enemySprites;
+ TQPtrList<TQCanvasSprite> * enemySprites;
#endif
void initView();
diff --git a/kgoldrunner/src/kgrfigure.cpp b/kgoldrunner/src/kgrfigure.cpp
index 272c571e..850de749 100644
--- a/kgoldrunner/src/kgrfigure.cpp
+++ b/kgoldrunner/src/kgrfigure.cpp
@@ -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;
diff --git a/kgoldrunner/src/kgrfigure.h b/kgoldrunner/src/kgrfigure.h
index 70c5fbed..f25950b2 100644
--- a/kgoldrunner/src/kgrfigure.h
+++ b/kgoldrunner/src/kgrfigure.h
@@ -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();
diff --git a/kgoldrunner/src/kgrgame.h b/kgoldrunner/src/kgrgame.h
index 29cd135d..4e420199 100644
--- a/kgoldrunner/src/kgrgame.h
+++ b/kgoldrunner/src/kgrgame.h
@@ -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.