┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Feck <[email protected]>2010-02-03 10:58:05 +0000
committerChristoph Feck <[email protected]>2010-02-03 10:58:05 +0000
commit28e6a719d80dfb5124540bbc6913b2acb1b54dcf (patch)
treed660e67501bd4812cc696365d6ed2032453b357d
parent7a0cbf257323176be420ea5d29f0d466cd682193 (diff)
Fix height calculation of "Additional Information" label
CCBUG: 220632 svn path=/trunk/KDE/kdebase/apps/; revision=1084630
-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).