Fix issues with FlowLayout not resizing properly in some cases

This commit is contained in:
baldurk
2016-11-09 13:26:21 +01:00
parent 5c850ac03a
commit 8b697f7055
+4 -1
View File
@@ -122,11 +122,14 @@ void FlowLayout::setGeometry(const QRect &rect)
{
QLayout::setGeometry(rect);
doLayout(rect, false);
update();
}
QSize FlowLayout::sizeHint() const
{
return minimumSize();
QSize size = geometry().size();
size.setHeight(doLayout(geometry().adjusted(0, 0, -10, 0), true));
return size;
}
QSize FlowLayout::minimumSize() const