diff options
Diffstat (limited to 'src/part/fileTree.cpp')
-rw-r--r-- | src/part/fileTree.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/part/fileTree.cpp b/src/part/fileTree.cpp index f459d50..fc2a4c9 100644 --- a/src/part/fileTree.cpp +++ b/src/part/fileTree.cpp @@ -4,7 +4,7 @@ #include "fileTree.h" #include <kglobal.h> #include <klocale.h> -#include <qfile.h> +#include <tqfile.h> //static definitions @@ -12,33 +12,33 @@ const uint File::DENOMINATOR[4] = { 1<<0, 1<<10, 1<<20, 1<<30 }; static const char PREFIX[4] = { 'K', 'M', 'G', 'T' }; -QString +TQString File::fullPath( const Directory *root /*= 0*/ ) const { - QString path; + TQString path; if( root == this ) root = 0; //prevent returning empty string when there is something we could return - for( const Directory *d = (Directory*)this; d != root && d; d = d->parent() ) + for( const Directory *d = (Directory*)this; d != root && d; d = d->tqparent() ) path.prepend( d->name() ); return path; } -QString +TQString File::humanReadableSize( UnitPrefix key /*= mega*/ ) const //FIXME inline { return humanReadableSize( m_size, key ); } -QString +TQString File::humanReadableSize( uint size, UnitPrefix key /*= mega*/ ) //static { if( size == 0 ) return "0 B"; - QString s; + TQString s; double prettySize = (double)size / (double)DENOMINATOR[key]; const KLocale &locale = *KGlobal::locale(); |