mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +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
|
||||
QWidget* p = qobject_cast<QWidget*>(parent());
|
||||
if (p && m_updateParentHeight) {
|
||||
p->setFixedHeight(m_itemHeight
|
||||
#ifdef Q_OS_WIN
|
||||
+ 4 // Vertical padding 2px on Windows
|
||||
#endif
|
||||
);
|
||||
int frameWidth = p->style()->pixelMetric(QStyle::PM_DefaultFrameWidth, 0, p);
|
||||
p->setFixedHeight(m_itemHeight + 2 * frameWidth);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user