Fix height calculation of "Additional Information" label

CCBUG: 220632

svn path=/trunk/KDE/kdebase/apps/; revision=1084630
This commit is contained in:
Christoph Feck 2010-02-03 10:58:05 +00:00
parent 7a0cbf2573
commit 28e6a719d8

View file

@ -443,7 +443,7 @@ void DolphinIconsView::updateGridSize(bool showPreview, int additionalInfoCount)
}
Q_ASSERT(additionalInfoCount >= 0);
itemHeight += additionalInfoCount * m_font.pointSize() * 2;
itemHeight += additionalInfoCount * QFontMetrics(m_font).height();
// Optimize the item size of the grid in a way to prevent large gaps on the
// right border (= row arrangement) or the bottom border (= column arrangement).