Document properly.

This commit is contained in:
Teo Mrnjavac 2016-01-08 18:09:19 +01:00
parent 08f9753aa2
commit 80d908e75b

View File

@ -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;