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 4 years ago
parent b51af60c2b
commit 9b7dfcd288
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF
  1. 2
      kstars/kstars/filesource.h
  2. 2
      kstars/kstars/planetcatalog.cpp
  3. 2
      kstars/kstars/stardatasink.h
  4. 4
      kwordquiz/src/kwordquizdoc.cpp
  5. 2
      kwordquiz/src/kwordquizdoc.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

@ -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;

@ -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
*/

@ -33,7 +33,7 @@
#include "wqlwriter.h"
#include "prefs.h"
//TQList<KWordQuizView> *KWordQuizDoc::pViewList = 0L;
//TQPtrList<KWordQuizView> *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<KWordQuizView>();
pViewList = new TQPtrList<KWordQuizView>();
}
pViewList->setAutoDelete(true);*/

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

Loading…
Cancel
Save