From f0296ef9e1f94e23c00d6f490e565d1dc768416d Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 26 May 2011 00:38:19 +0000 Subject: TQt4 port Filelight This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/filelight@1233561 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/part/fileTree.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/part/fileTree.cpp') 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 #include -#include +#include //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(); -- cgit v1.2.1