summaryrefslogtreecommitdiffstats
path: root/src/part/radialMap/builder.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:55:44 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:55:44 -0600
commit9b21afd056f51a1dba015292a5472a146de967bd (patch)
tree0c642c457dea43eb9af17b865bad4dbc43f9fc57 /src/part/radialMap/builder.cpp
parent5f20b2e679037af4b18ac901bdf78a08e5c0da39 (diff)
downloadfilelight-9b21afd056f51a1dba015292a5472a146de967bd.tar.gz
filelight-9b21afd056f51a1dba015292a5472a146de967bd.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 5f20b2e679037af4b18ac901bdf78a08e5c0da39.
Diffstat (limited to 'src/part/radialMap/builder.cpp')
-rw-r--r--src/part/radialMap/builder.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/part/radialMap/builder.cpp b/src/part/radialMap/builder.cpp
index e993453..bae6626 100644
--- a/src/part/radialMap/builder.cpp
+++ b/src/part/radialMap/builder.cpp
@@ -40,7 +40,7 @@ RadialMap::Builder::Builder( RadialMap::Map *m, const Directory* const d, bool f
void
RadialMap::Builder::findVisibleDepth( const Directory* const dir, const unsigned int depth )
{
- //**** because I don't use the same minimumSize criteria as in the visual function
+ //**** because I don't use the same tqminimumSize criteria as in the visual function
// this can lead to incorrect visual representation
//**** BUT, you can't set those limits until you know m_depth!
@@ -84,7 +84,7 @@ RadialMap::Builder::build( const Directory* const dir, const unsigned int depth,
{
//first iteration: dir == m_root
- if( dir->children() == 0 ) //we do fileCount rather than size to avoid chance of divide by zero later
+ if( dir->tqchildren() == 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)->children(); //need to add one to count the dir as well
+ hiddenFileCount += static_cast<const Directory*>(*it)->tqchildren(); //need to add one to count the dir as well
++hiddenFileCount;
}
}
- if( hiddenFileCount == dir->children() && !Config::showSmallFiles )
+ if( hiddenFileCount == dir->tqchildren() && !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" )
- .arg( hiddenFileCount )
- .arg( File::humanReadableSize( hiddenSize/hiddenFileCount ) );
+ .tqarg( hiddenFileCount )
+ .tqarg( File::humanReadableSize( hiddenSize/hiddenFileCount ) );
(m_signature + depth)->append( new Segment( new File( s.local8Bit(), hiddenSize ), a_start, a_end - a_start, true ) );
}