summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorMorten Johan Sorvig <morten.sorvig@nokia.com>2012-02-03 08:53:16 (GMT)
committerQt by Nokia <qt-info@nokia.com>2012-02-03 10:10:44 (GMT)
commit882a868486949784206d2ef386ad4e2c0da2b07e (patch)
tree5e0e78599a23b0deaf24c08a5581557e0032728a /src/gui/widgets
parent687344ec72d2c36786a031f9c44da6df3f8f2110 (diff)
downloadQt-882a868486949784206d2ef386ad4e2c0da2b07e.zip
Qt-882a868486949784206d2ef386ad4e2c0da2b07e.tar.gz
Qt-882a868486949784206d2ef386ad4e2c0da2b07e.tar.bz2
Make QMacCocoaViewContainer work again.
Non-native widgets are now the default, set WA_NativeWindow to get a native widget. Change-Id: I39a4d3476d8cf2470035ff94feac7a20232dc8e1 Reviewed-by: Andy Shaw <andy.shaw@digia.com> Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@nokia.com>
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/qmaccocoaviewcontainer_mac.mm3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/widgets/qmaccocoaviewcontainer_mac.mm b/src/gui/widgets/qmaccocoaviewcontainer_mac.mm
index ab551be..35404a3 100644
--- a/src/gui/widgets/qmaccocoaviewcontainer_mac.mm
+++ b/src/gui/widgets/qmaccocoaviewcontainer_mac.mm
@@ -134,6 +134,9 @@ QMacCocoaViewContainer::QMacCocoaViewContainer(void *cocoaViewToWrap, QWidget *p
{
if (cocoaViewToWrap)
setCocoaView(cocoaViewToWrap);
+
+ // QMacCocoaViewContainer requires a native window handle.
+ setAttribute(Qt::WA_NativeWindow);
}
/*!