summaryrefslogtreecommitdiffstats
path: root/libk3b/tools/k3bdirsizejob.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-27 19:21:21 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-27 19:21:21 +0000
commitd8cc8bdfa7fa624a526d5aa1626974e1444cb799 (patch)
treef295f1c545b319963d5357af79fe08991d8141d9 /libk3b/tools/k3bdirsizejob.cpp
parent2a39a080579fb52a2599c02b2939795385b89093 (diff)
downloadk3b-d8cc8bdfa7fa624a526d5aa1626974e1444cb799.tar.gz
k3b-d8cc8bdfa7fa624a526d5aa1626974e1444cb799.zip
TQt4 port k3b
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k3b@1233803 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libk3b/tools/k3bdirsizejob.cpp')
-rw-r--r--libk3b/tools/k3bdirsizejob.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/libk3b/tools/k3bdirsizejob.cpp b/libk3b/tools/k3bdirsizejob.cpp
index ab9cb8a..51b28e8 100644
--- a/libk3b/tools/k3bdirsizejob.cpp
+++ b/libk3b/tools/k3bdirsizejob.cpp
@@ -23,8 +23,8 @@
#include <kdebug.h>
#include <kglobal.h>
-#include <qfileinfo.h>
-#include <qdir.h>
+#include <tqfileinfo.h>
+#include <tqdir.h>
class K3bDirSizeJob::WorkThread : public K3bThread
@@ -51,7 +51,7 @@ public:
void run() {
emitStarted();
- QStringList l;
+ TQStringList l;
for( KURL::List::const_iterator it = urls.begin();
it != urls.end(); ++it ) {
const KURL& url = *it;
@@ -65,13 +65,13 @@ public:
l.append( url.path() );
}
- emitFinished( countFiles( l, QString() ) );
+ emitFinished( countFiles( l, TQString() ) );
}
- bool countDir( const QString& dir ) {
- const QString& dot = KGlobal::staticQString( "." );
- const QString& dotdot = KGlobal::staticQString( ".." );
- QStringList l = QDir(dir).entryList( QDir::All|QDir::Hidden|QDir::System );
+ bool countDir( const TQString& dir ) {
+ const TQString& dot = KGlobal::staticQString( "." );
+ const TQString& dotdot = KGlobal::staticQString( ".." );
+ TQStringList l = TQDir(dir).entryList( TQDir::All|TQDir::Hidden|TQDir::System );
l.remove( dot );
l.remove( dotdot );
@@ -79,21 +79,21 @@ public:
}
- bool countFiles( const QStringList& l, const QString& dir ) {
- for( QStringList::const_iterator it = l.begin();
+ bool countFiles( const TQStringList& l, const TQString& dir ) {
+ for( TQStringList::const_iterator it = l.begin();
it != l.end(); ++it ) {
if( m_canceled )
return false;
k3b_struct_stat s;
- if( k3b_lstat( QFile::encodeName( dir + *it ), &s ) )
+ if( k3b_lstat( TQFile::encodeName( dir + *it ), &s ) )
return false;
if( S_ISLNK( s.st_mode ) ) {
++totalSymlinks;
if( followSymlinks ) {
- if( k3b_stat( QFile::encodeName( dir + *it ), &s ) )
+ if( k3b_stat( TQFile::encodeName( dir + *it ), &s ) )
return false;
}
}
@@ -131,8 +131,8 @@ private:
};
-K3bDirSizeJob::K3bDirSizeJob( QObject* parent )
- : K3bThreadJob( new K3bSimpleJobHandler(), parent )
+K3bDirSizeJob::K3bDirSizeJob( TQObject* tqparent )
+ : K3bThreadJob( new K3bSimpleJobHandler(), tqparent )
{
d = new WorkThread;
setThread( d );