mirror of
https://github.com/86Box/86Box.git
synced 2025-01-23 09:42:47 -05:00
Fix compile error
This commit is contained in:
parent
b203af8f54
commit
ce770b90aa
1 changed files with 2 additions and 1 deletions
|
@ -35,7 +35,8 @@ void StyleOverride::polish(QWidget* widget)
|
|||
/* Disable title bar context help buttons globally as they are unused. */
|
||||
if (widget->isWindow()) {
|
||||
if (widget->layout() && widget->minimumSize() == widget->maximumSize()) {
|
||||
if (widget->minimumSize() < widget->minimumSizeHint()) {
|
||||
if (widget->minimumSize().width() < widget->minimumSizeHint().width()
|
||||
|| widget->minimumSize().height() < widget->minimumSizeHint().height()) {
|
||||
widget->setFixedSize(QSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX));
|
||||
widget->layout()->setSizeConstraint(QLayout::SetFixedSize);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue