mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 07:18:08 +00:00
Fix CategoryFilterWidget::sizeHint()
This commit is contained in:
parent
4cd3a37b4a
commit
c6dfdf9135
@ -167,11 +167,10 @@ void CategoryFilterWidget::callUpdateGeometry()
|
|||||||
|
|
||||||
QSize CategoryFilterWidget::sizeHint() const
|
QSize CategoryFilterWidget::sizeHint() const
|
||||||
{
|
{
|
||||||
|
const QSize viewportSize {viewportSizeHint()};
|
||||||
return {
|
return {
|
||||||
// Width should be exactly the width of the content
|
viewportSize.width(),
|
||||||
sizeHintForColumn(0),
|
viewportSize.height() + static_cast<int>(0.5 * sizeHintForRow(0))
|
||||||
// Height should be exactly the height of the content
|
|
||||||
static_cast<int>(sizeHintForRow(0) * (model()->rowCount() + 0.5)),
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user