┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphiniconsview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dolphiniconsview.cpp')
-rw-r--r--src/dolphiniconsview.cpp2
1 files changed, 1 insertions, 1 deletions
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).