summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qt_cocoa_helpers_mac.mm
diff options
context:
space:
mode:
authorJustin McPherson <justin.mcpherson@nokia.com>2010-01-29 06:51:18 (GMT)
committerJustin McPherson <justin.mcpherson@nokia.com>2010-01-29 06:51:18 (GMT)
commit245f2d6d8bf32dcfa28501a9944de00e1e4e1875 (patch)
treebba1eb8796905fb1ed3d92c59f8841cf848bf2aa /src/gui/kernel/qt_cocoa_helpers_mac.mm
parent7123ef04484f283ffa30ece8cb73f541bd81e830 (diff)
parent2f91e9ce0e02f613d68b5b59d00b61c8f4f12c68 (diff)
downloadQt-245f2d6d8bf32dcfa28501a9944de00e1e4e1875.zip
Qt-245f2d6d8bf32dcfa28501a9944de00e1e4e1875.tar.gz
Qt-245f2d6d8bf32dcfa28501a9944de00e1e4e1875.tar.bz2
Merge ../../qt/master
Conflicts: tests/auto/tests.xml
Diffstat (limited to 'src/gui/kernel/qt_cocoa_helpers_mac.mm')
-rw-r--r--src/gui/kernel/qt_cocoa_helpers_mac.mm3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/kernel/qt_cocoa_helpers_mac.mm b/src/gui/kernel/qt_cocoa_helpers_mac.mm
index e0dcaef..13c25fd 100644
--- a/src/gui/kernel/qt_cocoa_helpers_mac.mm
+++ b/src/gui/kernel/qt_cocoa_helpers_mac.mm
@@ -143,6 +143,9 @@ extern QPointer<QWidget> qt_button_down; //qapplication_mac.cpp
void macWindowFade(void * /*OSWindowRef*/ window, float durationSeconds)
{
+#ifdef QT_MAC_USE_COCOA
+ QMacCocoaAutoReleasePool pool;
+#endif
OSWindowRef wnd = static_cast<OSWindowRef>(window);
if (wnd) {
QWidget *widget;