summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMorten Sorvig <morten.sorvig@nokia.com>2011-08-15 13:11:50 +0200
committerRichard Moe Gustavsen <richard.gustavsen@nokia.com>2011-08-18 09:52:15 +0200
commit48ba733fcff6f99d2dd420b44f92ae9ddd1ff264 (patch)
treea40bd742d37a1e5c359136e4580393b2f58984f2 /src
parent4e6c4d50a5fe10e355802ac05ce143aed32cffb4 (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/platforms/cocoa/qcocoawindow.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoawindow.mm b/src/plugins/platforms/cocoa/qcocoawindow.mm
index 80a195d788..eef7f8b160 100644
--- a/src/plugins/platforms/cocoa/qcocoawindow.mm
+++ b/src/plugins/platforms/cocoa/qcocoawindow.mm
@@ -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;