diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:25:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:25:18 +0000 |
commit | aa3a1ca934bc541bddd3fa136a85f106f7da266e (patch) | |
tree | 9ad0b795aed8fa4ac30c2fe0fd1aacb8175714c0 /kdat/File.cpp | |
parent | b10cf7066791a2f362495890cd50c984e8025412 (diff) | |
download | tdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.tar.gz tdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1157635 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdat/File.cpp')
-rw-r--r-- | kdat/File.cpp | 22 |
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() ); } |