Mac: fix regression to make dialog resizable
Task-number: QTBUG-28254 Change-Id: I8623a68d589bec17042935ad308f85ddc953540d Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
This commit is contained in:
parent
f3b8b12306
commit
edb4e66f5f
@ -372,9 +372,9 @@ NSUInteger QCocoaWindow::windowStyleMask(Qt::WindowFlags flags)
|
||||
if (flags == Qt::Window) {
|
||||
styleMask = (NSResizableWindowMask | NSClosableWindowMask | NSMiniaturizableWindowMask | NSTitledWindowMask);
|
||||
} else if ((flags & Qt::Dialog) && (window()->modality() != Qt::NonModal)) {
|
||||
styleMask = NSTitledWindowMask;
|
||||
styleMask = NSResizableWindowMask | NSTitledWindowMask;
|
||||
} else if (!(flags & Qt::FramelessWindowHint)) {
|
||||
if (flags & Qt::WindowMaximizeButtonHint)
|
||||
if ((flags & Qt::Dialog) || (flags & Qt::WindowMaximizeButtonHint))
|
||||
styleMask |= NSResizableWindowMask;
|
||||
if (flags & Qt::WindowTitleHint)
|
||||
styleMask |= NSTitledWindowMask;
|
||||
|
Loading…
Reference in New Issue
Block a user