]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fix height calculation of "Additional Information" label
authorChristoph Feck <christoph@maxiom.de>
Wed, 3 Feb 2010 10:58:05 +0000 (10:58 +0000)
committerChristoph Feck <christoph@maxiom.de>
Wed, 3 Feb 2010 10:58:05 +0000 (10:58 +0000)
CCBUG: 220632

svn path=/trunk/KDE/kdebase/apps/; revision=1084630

src/dolphiniconsview.cpp

index 1f6f007d347864510f6f1595a8388d8aff3be95c..ef3221422ed6ceea089cf06f5a6f5a1f9461065a 100644 (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).