filelight
builder.cpp
Go to the documentation of this file.
85 findVisibleDepth((Folder *)*it, depth + 1); //if no files greater than min size the depth is still recorded
97 m_limits[d] = (uint)(size3 / (double)(pi2B * (d + 1))); //min is angle that gives 3px outer diameter for that depth
103 RadialMap::Builder::build(const Folder* const dir, const unsigned int depth, unsigned int a_start, const unsigned int a_end)
107 if (dir->children() == 0) //we do fileCount rather than size to avoid chance of divide by zero later
139 hiddenFileCount += static_cast<const Folder*>(*it)->children(); //need to add one to count the dir as well
148 else if ((Config::showSmallFiles && hiddenSize > m_limits[depth]) || (depth == 0 && (hiddenSize > dir->size()/8)) /*|| > size() * 0.75*/)
157 (m_signature + depth)->append(new Segment(new File(s.toUtf8(), hiddenSize), a_start, a_end - a_start, true));
Builder(Map *, const Folder *const, bool fast=false)
Definition: builder.cpp:36
Definition: map.h:36
Definition: fileTree.h:271
Definition: fileTree.h:40
Definition: fileTree.h:39
Definition: fileTree.h:225
http QObject const QList< QVariant > m_map(0)
QByteArray toUtf8() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:32 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:32 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.