summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms
diff options
context:
space:
mode:
authorMikolaj Boc <mikolaj.boc@qt.io>2022-09-12 15:36:46 +0200
committerMikolaj Boc <mikolaj.boc@qt.io>2022-09-13 18:13:00 +0200
commit9ec7cbc77462938969e9569deeb5a106d321ce21 (patch)
tree3912bcfbd649b2bb7309123ee2a843e88efdda05 /src/plugins/platforms
parent9e12ea37ea1a62fe5f5ed6860a48928664e19713 (diff)
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>
Diffstat (limited to 'src/plugins/platforms')
-rw-r--r--src/plugins/platforms/wasm/qwasmwindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/platforms/wasm/qwasmwindow.cpp b/src/plugins/platforms/wasm/qwasmwindow.cpp
index c72e59c7ca..8e3bc3f72c 100644
--- a/src/plugins/platforms/wasm/qwasmwindow.cpp
+++ b/src/plugins/platforms/wasm/qwasmwindow.cpp
@@ -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);
}