summaryrefslogtreecommitdiffstats
path: root/src/part/fileTree.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-26 00:38:19 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-26 00:38:19 +0000
commitf0296ef9e1f94e23c00d6f490e565d1dc768416d (patch)
tree7f3fd9f99621c111ff67f2d62feb5960a3371853 /src/part/fileTree.cpp
parent3098eb909534268622ce776f9a7bb5310d31b3c1 (diff)
downloadfilelight-f0296ef9e1f94e23c00d6f490e565d1dc768416d.tar.gz
filelight-f0296ef9e1f94e23c00d6f490e565d1dc768416d.zip
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
Diffstat (limited to 'src/part/fileTree.cpp')
-rw-r--r--src/part/fileTree.cpp14
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();