summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src_script_qscriptengine.cpp
diff options
context:
space:
mode:
authorJason Barron <jason.barron@nokia.com>2010-07-30 09:38:37 (GMT)
committerJason Barron <jason.barron@nokia.com>2010-07-30 12:22:15 (GMT)
commit9a059c53caaf19cd2ff722df6e47870a2843ee43 (patch)
tree427b1d97c4e0b4654dc273b7384e50589f140573 /doc/src/snippets/code/src_script_qscriptengine.cpp
parentf1257358b4432abf874460f58cba73bce17981ab (diff)
downloadQt-9a059c53caaf19cd2ff722df6e47870a2843ee43.zip
Qt-9a059c53caaf19cd2ff722df6e47870a2843ee43.tar.gz
Qt-9a059c53caaf19cd2ff722df6e47870a2843ee43.tar.bz2
Fix proxy widgets with the OpenVG paint engine.
Proxy widgets use the shared painter functionality and this implies that the paint engine's begin function does not get called for each new widget that gets painted. This causes a problem because the system clip gets modified by QPainter, but the paint engine does not realize that this happened and fails to use the new clip. The result is that you can end up painting outside the intended clip area. The fix is to reimplement the virtual systemStateChanged() function in QVGPaintEnginePrivate and make it call updateScissor() to re-evaluate the clipping flags and update the current clip accordingly. A similar fix was done to the OpenGL paint engine way back in 307c2954. Task-number: QTBUG-12486 Reviewed-by: Rhys Weatherley
Diffstat (limited to 'doc/src/snippets/code/src_script_qscriptengine.cpp')
0 files changed, 0 insertions, 0 deletions