From: Christoph Feck Date: Wed, 3 Feb 2010 10:58:05 +0000 (+0000) Subject: Fix height calculation of "Additional Information" label X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/28e6a719d80dfb5124540bbc6913b2acb1b54dcf Fix height calculation of "Additional Information" label CCBUG: 220632 svn path=/trunk/KDE/kdebase/apps/; revision=1084630 --- diff --git a/src/dolphiniconsview.cpp b/src/dolphiniconsview.cpp index 1f6f007d3..ef3221422 100644 --- a/src/dolphiniconsview.cpp +++ b/src/dolphiniconsview.cpp @@ -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).