diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-19 11:35:29 -0600 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2012-07-05 09:19:56 +0200 |
commit | 77dd1aa464dc84178cfdc13f4aa10a2c0e9c1d16 (patch) | |
tree | 420ef803313a8ba2f30d7f9948d1d46672b6c900 /src/part/radialMap/builder.cpp | |
parent | a659b8d7f9dab069ef8549c22a86c0a0748980eb (diff) | |
download | filelight-77dd1aa464dc84178cfdc13f4aa10a2c0e9c1d16.tar.gz filelight-77dd1aa464dc84178cfdc13f4aa10a2c0e9c1d16.zip |
Remove additional unneeded tq method conversions
(cherry picked from commit d96d16a5d7133f94b2006b78d1e100c0dba81d3b)
Diffstat (limited to 'src/part/radialMap/builder.cpp')
-rw-r--r-- | src/part/radialMap/builder.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/part/radialMap/builder.cpp b/src/part/radialMap/builder.cpp index 74b9288..e993453 100644 --- a/src/part/radialMap/builder.cpp +++ b/src/part/radialMap/builder.cpp @@ -84,7 +84,7 @@ RadialMap::Builder::build( const Directory* const dir, const unsigned int depth, { //first iteration: dir == m_root - if( dir->tqchildren() == 0 ) //we do fileCount rather than size to avoid chance of divide by zero later + if( dir->children() == 0 ) //we do fileCount rather than size to avoid chance of divide by zero later return false; uint hiddenSize = 0, hiddenFileCount = 0; @@ -116,13 +116,13 @@ RadialMap::Builder::build( const Directory* const dir, const unsigned int depth, hiddenSize += (*it)->size(); if( (*it)->isDirectory() ) //**** considered virtual, but dir wouldn't count itself! - hiddenFileCount += static_cast<const Directory*>(*it)->tqchildren(); //need to add one to count the dir as well + hiddenFileCount += static_cast<const Directory*>(*it)->children(); //need to add one to count the dir as well ++hiddenFileCount; } } - if( hiddenFileCount == dir->tqchildren() && !Config::showSmallFiles ) + if( hiddenFileCount == dir->children() && !Config::showSmallFiles ) return true; else if( (Config::showSmallFiles && hiddenSize > m_limits[depth]) || (depth == 0 && (hiddenSize > dir->size()/8)) /*|| > size() * 0.75*/ ) @@ -131,8 +131,8 @@ RadialMap::Builder::build( const Directory* const dir, const unsigned int depth, // I dunno how to i18n this const TQString s = i18n( "There can't ever be only 1 file", "%1 files, each about %2" ) - .tqarg( hiddenFileCount ) - .tqarg( File::humanReadableSize( hiddenSize/hiddenFileCount ) ); + .arg( hiddenFileCount ) + .arg( File::humanReadableSize( hiddenSize/hiddenFileCount ) ); (m_signature + depth)->append( new Segment( new File( s.local8Bit(), hiddenSize ), a_start, a_end - a_start, true ) ); } |