summaryrefslogtreecommitdiffstats
path: root/kdat/File.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdat/File.cpp')
-rw-r--r--kdat/File.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kdat/File.cpp b/kdat/File.cpp
index 7fc8f97..fd766b3 100644
--- a/kdat/File.cpp
+++ b/kdat/File.cpp
@@ -21,7 +21,7 @@
#include "File.h"
-File::File( File* parent, int size, int mtime, int startRecord, int endRecord, const QString & name )
+File::File( File* parent, int size, int mtime, int startRecord, int endRecord, const TQString & name )
: _stubbed( FALSE ),
_name( name ),
_parent( parent )
@@ -122,7 +122,7 @@ void File::readAll( int version )
{
read( version );
- QPtrListIterator<File> i( getChildren() );
+ TQPtrListIterator<File> i( getChildren() );
for ( ; i.current(); ++i ) {
i.current()->readAll( version );
}
@@ -156,7 +156,7 @@ void File::write( FILE* fptr )
// Child range list.
ival = _ranges.getRanges().count();
fwrite( &ival, sizeof( ival ), 1, fptr );
- QPtrListIterator<Range> it( _ranges.getRanges() );
+ TQPtrListIterator<Range> it( _ranges.getRanges() );
for ( ; it.current(); ++it ) {
ival = it.current()->getStart();
fwrite( &ival, sizeof( ival ), 1, fptr );
@@ -178,7 +178,7 @@ void File::write( FILE* fptr )
ival = _children.count();
fwrite( &ival, sizeof( ival ), 1, fptr );
- QPtrListIterator<File> i( _children );
+ TQPtrListIterator<File> i( _children );
int count = 0;
for ( ; i.current(); ++i, count++ ) {
// Fill in the file offset.
@@ -226,16 +226,16 @@ int File::getEndRecord()
return _union._data._endRecord;
}
-QString File::getName()
+TQString File::getName()
{
read();
return _name;
}
-QString File::getFullPathName()
+TQString File::getFullPathName()
{
- QString tmp = _name.copy();
+ TQString tmp = _name.copy();
for ( File* parent = getParent(); parent; parent = parent->getParent() ) {
tmp.prepend( parent->getName() );
}
@@ -248,14 +248,14 @@ File* File::getParent()
return _parent;
}
-const QPtrList<File>& File::getChildren()
+const TQPtrList<File>& File::getChildren()
{
read();
return _children;
}
-const QPtrList<Range>& File::getRanges()
+const TQPtrList<Range>& File::getRanges()
{
read();
@@ -276,10 +276,10 @@ void File::calcRanges()
_ranges.clear();
_ranges.addRange( getStartRecord(), getEndRecord() );
- QPtrListIterator<File> it( getChildren() );
+ TQPtrListIterator<File> it( getChildren() );
for ( ; it.current(); ++it ) {
it.current()->calcRanges();
- QPtrListIterator<Range> it2( it.current()->getRanges() );
+ TQPtrListIterator<Range> it2( it.current()->getRanges() );
for ( ; it2.current(); ++it2 ) {
_ranges.addRange( it2.current()->getStart(), it2.current()->getEnd() );
}