--- a/src/gui/kernel/qt_cocoa_helpers_mac.mm Mon Mar 15 12:43:09 2010 +0200
+++ b/src/gui/kernel/qt_cocoa_helpers_mac.mm Thu Apr 08 14:19:33 2010 +0300
@@ -1162,7 +1162,7 @@
CGrafPtr port = GetWindowPort(qt_mac_window_for(widget));
QDBeginCGContext(port, &context);
#else
- CGContextRef context = (CGContextRef)[[NSGraphicsContext graphicsContextWithWindow:qt_mac_window_for(widget)] graphicsPort];
+ CGContextRef context = reinterpret_cast<CGContextRef>([[qt_mac_window_for(widget) graphicsContext] graphicsPort]);
#endif
return context;
}