Make popup menus non-resizable on WASM
Windows that are of popup type only should not be resizable. Those that are dialogs as well, should, provided their minimum size does not match their non-empty maximum size. Fixes: QTBUG-106560 Pick-to: 6.4.0 6.4 Change-Id: I76851e19949110323f949a1d17260fbd4fc35159 Reviewed-by: David Skoland <david.skoland@qt.io>
This commit is contained in:
parent
9e12ea37ea
commit
9ec7cbc774
@ -293,6 +293,10 @@ bool QWasmWindow::isPointOnTitle(QPoint globalPoint) const
|
||||
|
||||
bool QWasmWindow::isPointOnResizeRegion(QPoint point) const
|
||||
{
|
||||
// Certain windows, like undocked dock widgets, are both popups and dialogs. Those should be
|
||||
// resizable.
|
||||
if (windowIsPopupType(window()->flags()))
|
||||
return false;
|
||||
return (window()->maximumSize().isEmpty() || window()->minimumSize() != window()->maximumSize())
|
||||
&& resizeRegion().contains(point);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user