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 6289fd3b69
commit 6504041928
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -79,7 +79,7 @@ void %{APPNAME}::paintEvent( TQPaintEvent* ) {
%{APPNAME}Impl::~%{APPNAME}Impl() { %{APPNAME}Impl::~%{APPNAME}Impl() {
/* /*
* we will delete our applets as well * we will delete our applets as well
* setAUtoDelete makes the TQList free * setAUtoDelete makes the TQPtrList free
* the objects behind the pointers * the objects behind the pointers
*/ */
m_applets.setAutoDelete( true ); m_applets.setAutoDelete( true );

@ -69,7 +69,7 @@ public:
TQ_REFCOUNT TQ_REFCOUNT
private: private:
TQList<%{APPNAME}> m_applets; TQPtrList<%{APPNAME}> m_applets;
}; };

@ -17,14 +17,14 @@ public:
bool isOwner( Interface* ); bool isOwner( Interface* );
TQWidget *configure( Interface* ); TQWidget *configure( Interface* );
TQWidget *information( Interface* ); TQWidget *information( Interface* );
TQList<Interface> getInterfaces(); TQPtrList<Interface> getInterfaces();
void possibleNewInterfaces( TQMap<TQString, TQString>& ); void possibleNewInterfaces( TQMap<TQString, TQString>& );
Interface *addNewInterface( const TQString& ); Interface *addNewInterface( const TQString& );
bool remove( Interface* iface ); bool remove( Interface* iface );
TQString getPixmapName( Interface* ) {return TQString::fromLatin1("Tux"); } TQString getPixmapName( Interface* ) {return TQString::fromLatin1("Tux"); }
void receive( const TQCString&, const TQByteArray& ar ) {} // don't listen void receive( const TQCString&, const TQByteArray& ar ) {} // don't listen
private: private:
TQList<Interface> m_interfaces; TQPtrList<Interface> m_interfaces;
}; };
extern "C" { extern "C" {

@ -41,7 +41,7 @@ TQWidget* %{APPNAME}Module::information( Interface* iface ) {
return new InterfaceInformationImp(0, "Interface info", iface ); return new InterfaceInformationImp(0, "Interface info", iface );
} }
TQList<Interface> %{APPNAME}Module::getInterfaces() { TQPtrList<Interface> %{APPNAME}Module::getInterfaces() {
return m_interfaces; return m_interfaces;
} }

@ -17,14 +17,14 @@ public:
bool isOwner( Interface* ); bool isOwner( Interface* );
TQWidget *configure( Interface* ); TQWidget *configure( Interface* );
TQWidget *information( Interface* ); TQWidget *information( Interface* );
TQList<Interface> getInterfaces(); TQPtrList<Interface> getInterfaces();
void possibleNewInterfaces( TQMap<TQString, TQString>& ); void possibleNewInterfaces( TQMap<TQString, TQString>& );
Interface *addNewInterface( const TQString& ); Interface *addNewInterface( const TQString& );
bool remove( Interface* iface ); bool remove( Interface* iface );
TQString getPixmapName( Interface* ) {return TQString::fromLatin1("Tux"); } TQString getPixmapName( Interface* ) {return TQString::fromLatin1("Tux"); }
void receive( const TQCString&, const TQByteArray& ar ) {} // don't listen void receive( const TQCString&, const TQByteArray& ar ) {} // don't listen
private: private:
TQList<Interface> m_interfaces; TQPtrList<Interface> m_interfaces;
}; };
extern "C" { extern "C" {

Loading…
Cancel
Save