Document properly.
This commit is contained in:
parent
08f9753aa2
commit
80d908e75b
@ -479,8 +479,8 @@ PartitionBarsView::computeItemsVector( const QModelIndex& parent ) const
|
|||||||
qreal adjustedTotal = total;
|
qreal adjustedTotal = total;
|
||||||
for ( int row = 0; row < count; ++row )
|
for ( int row = 0; row < count; ++row )
|
||||||
{
|
{
|
||||||
if ( items[ row ].size < 0.01 * total ) // if this item is smaller than 5% of everything
|
if ( items[ row ].size < 0.01 * total ) // If this item is smaller than 1% of everything,
|
||||||
{
|
{ // force its width to 1%.
|
||||||
adjustedTotal -= items[ row ].size;
|
adjustedTotal -= items[ row ].size;
|
||||||
items[ row ].size = qRound( 0.01 * total );
|
items[ row ].size = qRound( 0.01 * total );
|
||||||
adjustedTotal += items[ row ].size;
|
adjustedTotal += items[ row ].size;
|
||||||
|
Loading…
Reference in New Issue
Block a user