diff options
author | Morten Johan Sorvig <morten.sorvig@nokia.com> | 2012-02-03 08:53:16 (GMT) |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-03 10:10:44 (GMT) |
commit | 882a868486949784206d2ef386ad4e2c0da2b07e (patch) | |
tree | 5e0e78599a23b0deaf24c08a5581557e0032728a /src/gui/widgets | |
parent | 687344ec72d2c36786a031f9c44da6df3f8f2110 (diff) | |
download | Qt-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.mm | 3 |
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); } /*! |