QCocoaWindow::windowStyleMask: make popups non-resizable
Otherwise, context menu can be resized. Task-number: QTBUG-106925 Change-Id: I409d0113fd92ca89b14f068c391dd9c0ddb79ce7 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> (cherry picked from commit e17372e723555cd9eb7b4efcb553812e0b98f37b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
b793c01539
commit
65465c2693
@ -526,9 +526,11 @@ NSUInteger QCocoaWindow::windowStyleMask(Qt::WindowFlags flags)
|
||||
// working (for example minimizing frameless windows, or resizing
|
||||
// windows that don't have zoom or fullscreen titlebar buttons).
|
||||
styleMask |= NSWindowStyleMaskClosable
|
||||
| NSWindowStyleMaskResizable
|
||||
| NSWindowStyleMaskMiniaturizable;
|
||||
|
||||
if (type != Qt::Popup) // We only care about popups exactly.
|
||||
styleMask |= NSWindowStyleMaskResizable;
|
||||
|
||||
if (type == Qt::Tool)
|
||||
styleMask |= NSWindowStyleMaskUtilityWindow;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user