diff options
author | Gunnar Sletta <gunnar@trolltech.com> | 2010-08-27 15:51:39 (GMT) |
---|---|---|
committer | Gunnar Sletta <gunnar@trolltech.com> | 2010-09-06 10:50:13 (GMT) |
commit | 3676380190908d79fe547cf2a5efc3efdba25af8 (patch) | |
tree | 0ab36c17eae6bf26c307700eb4f1ca48072f2bdd /src/gui/kernel | |
parent | c22d43237363463e3409286470392a3227f49961 (diff) | |
download | Qt-3676380190908d79fe547cf2a5efc3efdba25af8.zip Qt-3676380190908d79fe547cf2a5efc3efdba25af8.tar.gz Qt-3676380190908d79fe547cf2a5efc3efdba25af8.tar.bz2 |
Allow QGLWidgets to draw them selves under -graphicssystem raster again...
Reviewed-by: Fabien Freling
Diffstat (limited to 'src/gui/kernel')
-rw-r--r-- | src/gui/kernel/qcocoaview_mac.mm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/kernel/qcocoaview_mac.mm b/src/gui/kernel/qcocoaview_mac.mm index 0282c79..8576f52 100644 --- a/src/gui/kernel/qcocoaview_mac.mm +++ b/src/gui/kernel/qcocoaview_mac.mm @@ -549,8 +549,11 @@ static int qCocoaViewCount = 0; qwidgetprivate->syncBackingStore(qwidget->rect()); } - // Since we don't want to use the native engine, we must exit. - return; + // Since we don't want to use the native engine, we must exit, however + // widgets that are set to paint on screen, spesifically QGLWidget, + // requires the following code to execute in order to be drawn. + if (!qwidget->testAttribute(Qt::WA_PaintOnScreen)) + return; } CGContextRef cg = (CGContextRef)[[NSGraphicsContext currentContext] graphicsPort]; |