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/1/head
Michele Calgaro 6 years ago
parent b51af60c2b
commit 9b7dfcd288
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -90,7 +90,7 @@ class FileSource : public TQDataSource {
*A low value needs longer to reload data, but it doesn't interrupt the *A low value needs longer to reload data, but it doesn't interrupt the
*main event loop (it's smoother). *main event loop (it's smoother).
*But it's important to know that 500 lines to read is very fast, but *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. *will also defined with this value.
*/ */
#define maxLines 500 #define maxLines 500

@ -35,7 +35,7 @@ PlanetCatalog::PlanetCatalog(KStarsData *dat) : Earth(0), Sun(0), kd(dat) {
PlanetCatalog::~PlanetCatalog() { 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. // and will be deleted automatically.
// //
delete Earth; delete Earth;

@ -21,7 +21,7 @@
/**@class StarDataSink /**@class StarDataSink
*StarDataSink receives data from an FileSource object and appends these data *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 *@author Thomas Kabelmann
*@version 1.0 *@version 1.0
*/ */

@ -33,7 +33,7 @@
#include "wqlwriter.h" #include "wqlwriter.h"
#include "prefs.h" #include "prefs.h"
//TQList<KWordQuizView> *KWordQuizDoc::pViewList = 0L; //TQPtrList<KWordQuizView> *KWordQuizDoc::pViewList = 0L;
//KWordQuizView *KWordQuizDoc::m_view; //KWordQuizView *KWordQuizDoc::m_view;
KWordQuizDoc::KWordQuizDoc(TQWidget *parent, const char *name) : TQObject(parent, name) 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& ))); connect(KDirWatch::self(), TQT_SIGNAL(dirty(const TQString& )), this, TQT_SLOT(slotModifiedOnDisk(const TQString& )));
/* if(!pViewList) /* if(!pViewList)
{ {
pViewList = new TQList<KWordQuizView>(); pViewList = new TQPtrList<KWordQuizView>();
} }
pViewList->setAutoDelete(true);*/ pViewList->setAutoDelete(true);*/

@ -84,7 +84,7 @@ class KWordQuizDoc : public TQObject
public: public:
/** the list of the views currently connected to the document */ /** the list of the views currently connected to the document */
//static TQList<KWordQuizView> *pViewList; //static TQPtrList<KWordQuizView> *pViewList;
//static KWordQuizView *m_view; //static KWordQuizView *m_view;
private: private:
/** the modified flag of the current document */ /** the modified flag of the current document */

Loading…
Cancel
Save