Set the style mask manually.

Looks like the window flags conversion code from
Qt 4 is not working, set a style mask suitable
for qmlscene for now.

Change-Id: I5e672f586045a0f0403f6b75252f0029c8d8a205
Reviewed-on: http://codereview.qt.nokia.com/2956
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@nokia.com>
This commit is contained in:
Morten Sorvig 2011-08-15 13:11:50 +02:00 committed by Richard Moe Gustavsen
parent 4e6c4d50a5
commit 48ba733fcf

View File

@ -339,8 +339,8 @@ QNSWindow * QCocoaWindow::createWindow()
break;
}
default:
window = [[NSWindow alloc] initWithContentRect:frame
styleMask:m_windowAttributes
window = [[QNSWindow alloc] initWithContentRect:frame
styleMask:(NSResizableWindowMask | NSClosableWindowMask | NSMiniaturizableWindowMask | NSTitledWindowMask)
backing:NSBackingStoreBuffered
defer:YES];
break;