mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Fix height calculation of "Additional Information" label
CCBUG: 220632 svn path=/trunk/KDE/kdebase/apps/; revision=1084630
This commit is contained in:
parent
7a0cbf2573
commit
28e6a719d8
1 changed files with 1 additions and 1 deletions
|
@ -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).
|
||||
|
|
Loading…
Reference in a new issue