From 28e6a719d80dfb5124540bbc6913b2acb1b54dcf Mon Sep 17 00:00:00 2001 From: Christoph Feck Date: Wed, 3 Feb 2010 10:58:05 +0000 Subject: [PATCH] Fix height calculation of "Additional Information" label CCBUG: 220632 svn path=/trunk/KDE/kdebase/apps/; revision=1084630 --- src/dolphiniconsview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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). -- 2.47.3