mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
[SiteInfo] Set correct height of list view according to icons.
See #633
This commit is contained in:
parent
9725f53bbf
commit
77abf8493a
@ -98,11 +98,8 @@ QSize ListItemDelegate::sizeHint(const QStyleOptionViewItem &option, const QMode
|
|||||||
// Update height of parent widget
|
// Update height of parent widget
|
||||||
QWidget* p = qobject_cast<QWidget*>(parent());
|
QWidget* p = qobject_cast<QWidget*>(parent());
|
||||||
if (p && m_updateParentHeight) {
|
if (p && m_updateParentHeight) {
|
||||||
p->setFixedHeight(m_itemHeight
|
int frameWidth = p->style()->pixelMetric(QStyle::PM_DefaultFrameWidth, 0, p);
|
||||||
#ifdef Q_OS_WIN
|
p->setFixedHeight(m_itemHeight + 2 * frameWidth);
|
||||||
+ 4 // Vertical padding 2px on Windows
|
|
||||||
#endif
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user