Cocoa: handle WindowMaximizeButtonHint as well

Change-Id: I6af265d48e83fc3fc0ce86903820c2b37db05f03
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
Morten Johan Sørvig 2018-06-20 00:30:51 +02:00
parent ca1ad3b7cb
commit 581257bd2e

View File

@ -522,6 +522,8 @@ NSUInteger QCocoaWindow::windowStyleMask(Qt::WindowFlags flags)
styleMask |= NSClosableWindowMask;
if (flags & Qt::WindowMinimizeButtonHint)
styleMask |= NSMiniaturizableWindowMask;
if (flags & Qt::WindowMaximizeButtonHint)
styleMask |= NSResizableWindowMask;
} else {
styleMask |= NSClosableWindowMask | NSTitledWindowMask;