From 9b7dfcd2884692a56d951e3deced1d31313d6c2b Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 17 Oct 2018 23:25:49 +0900 Subject: [PATCH] Removed obsolete Qt2's TQList/TQListIterator classes and replaced with TQt3's TQPtrList/TQPtrListIterator ones. Signed-off-by: Michele Calgaro --- kstars/kstars/filesource.h | 2 +- kstars/kstars/planetcatalog.cpp | 2 +- kstars/kstars/stardatasink.h | 2 +- kwordquiz/src/kwordquizdoc.cpp | 4 ++-- kwordquiz/src/kwordquizdoc.h | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/kstars/kstars/filesource.h b/kstars/kstars/filesource.h index 7de46055..8189e5f0 100644 --- a/kstars/kstars/filesource.h +++ b/kstars/kstars/filesource.h @@ -90,7 +90,7 @@ class FileSource : public TQDataSource { *A low value needs longer to reload data, but it doesn't interrupt the *main event loop (it's smoother). *But it's important to know that 500 lines to read is very fast, but - *appending to TQList in StarDataSink will take the most time and this + *appending to TQPtrList in StarDataSink will take the most time and this *will also defined with this value. */ #define maxLines 500 diff --git a/kstars/kstars/planetcatalog.cpp b/kstars/kstars/planetcatalog.cpp index 3367f35c..34579fea 100644 --- a/kstars/kstars/planetcatalog.cpp +++ b/kstars/kstars/planetcatalog.cpp @@ -35,7 +35,7 @@ PlanetCatalog::PlanetCatalog(KStarsData *dat) : Earth(0), Sun(0), kd(dat) { PlanetCatalog::~PlanetCatalog() { // - // do NOT delete Sun. It is also in the TQList + // do NOT delete Sun. It is also in the TQPtrList // and will be deleted automatically. // delete Earth; diff --git a/kstars/kstars/stardatasink.h b/kstars/kstars/stardatasink.h index abfa23ee..61ec9ce5 100644 --- a/kstars/kstars/stardatasink.h +++ b/kstars/kstars/stardatasink.h @@ -21,7 +21,7 @@ /**@class StarDataSink *StarDataSink receives data from an FileSource object and appends these data - *to a TQList of star data. It's an asynchronous io class. + *to a TQPtrList of star data. It's an asynchronous io class. *@author Thomas Kabelmann *@version 1.0 */ diff --git a/kwordquiz/src/kwordquizdoc.cpp b/kwordquiz/src/kwordquizdoc.cpp index c132a7f2..abf26295 100644 --- a/kwordquiz/src/kwordquizdoc.cpp +++ b/kwordquiz/src/kwordquizdoc.cpp @@ -33,7 +33,7 @@ #include "wqlwriter.h" #include "prefs.h" -//TQList *KWordQuizDoc::pViewList = 0L; +//TQPtrList *KWordQuizDoc::pViewList = 0L; //KWordQuizView *KWordQuizDoc::m_view; KWordQuizDoc::KWordQuizDoc(TQWidget *parent, const char *name) : TQObject(parent, name) @@ -41,7 +41,7 @@ KWordQuizDoc::KWordQuizDoc(TQWidget *parent, const char *name) : TQObject(parent connect(KDirWatch::self(), TQT_SIGNAL(dirty(const TQString& )), this, TQT_SLOT(slotModifiedOnDisk(const TQString& ))); /* if(!pViewList) { - pViewList = new TQList(); + pViewList = new TQPtrList(); } pViewList->setAutoDelete(true);*/ diff --git a/kwordquiz/src/kwordquizdoc.h b/kwordquiz/src/kwordquizdoc.h index b1f30a0e..4ccd7dd7 100644 --- a/kwordquiz/src/kwordquizdoc.h +++ b/kwordquiz/src/kwordquizdoc.h @@ -84,7 +84,7 @@ class KWordQuizDoc : public TQObject public: /** the list of the views currently connected to the document */ - //static TQList *pViewList; + //static TQPtrList *pViewList; //static KWordQuizView *m_view; private: /** the modified flag of the current document */