]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphiniconsview.cpp
Fix height calculation of "Additional Information" label
[dolphin.git] / 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).