diff options
author | Gunnar Sletta <gunnar@trolltech.com> | 2009-10-05 10:53:04 (GMT) |
---|---|---|
committer | Gunnar Sletta <gunnar@trolltech.com> | 2009-10-05 11:03:47 (GMT) |
commit | 7cb0dea6d991a4d9f4a66b699dc5b353812b168d (patch) | |
tree | bd4057a7859fe57eb3c63706e1772d1ac1cf3d8e /src/opengl/qpaintengine_opengl.cpp | |
parent | c1d24c6b87dcc4c6e2f6f258c0198fdb6b2795f0 (diff) | |
download | Qt-7cb0dea6d991a4d9f4a66b699dc5b353812b168d.zip Qt-7cb0dea6d991a4d9f4a66b699dc5b353812b168d.tar.gz Qt-7cb0dea6d991a4d9f4a66b699dc5b353812b168d.tar.bz2 |
Update systemclip based on the correct parameters
Reviewed-by: Samuel
Diffstat (limited to 'src/opengl/qpaintengine_opengl.cpp')
-rw-r--r-- | src/opengl/qpaintengine_opengl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/qpaintengine_opengl.cpp b/src/opengl/qpaintengine_opengl.cpp index da490c0..3e4a8e7 100644 --- a/src/opengl/qpaintengine_opengl.cpp +++ b/src/opengl/qpaintengine_opengl.cpp @@ -2311,7 +2311,7 @@ void QOpenGLPaintEnginePrivate::updateDepthClip() void QOpenGLPaintEnginePrivate::systemStateChanged() { Q_Q(QOpenGLPaintEngine); - if (q->state()->hasClipping) + if (q->painter()->hasClipping()) q->updateClipRegion(q->painter()->clipRegion(), Qt::ReplaceClip); else q->updateClipRegion(QRegion(), Qt::NoClip); |