summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsscene.cpp
diff options
context:
space:
mode:
authorAndreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com>2009-04-21 15:57:05 +0200
committerJason McDonald <jason.mcdonald@nokia.com>2009-04-22 09:17:07 +1000
commit386eee20daaf77fd3b0a2c4c33de00083d538c65 (patch)
tree9e90acc5d5caa0a4d8650b4b6f36faf369c15123 /src/gui/graphicsview/qgraphicsscene.cpp
parent830751ef09d7605ce3152ffe507c98aa92ca47a2 (diff)
BT: Fix update regression for cached QGraphicsItem (Elastic Nodes stuck)
This fixes a bug in 4.5.0 where cached items that call update() after they have been moved or transformed failed to get a call to paint(), so the last cache image was used to draw. The easiest way to reproduce this bug is in the Elastic Nodes example. If you press, wait, then release, the nodes will consistently move to sunken state, then back to normal state. But if you click quickly while moving the mouse, the nodes will stay sunken. The bug was that the item was marked as dirty as a result of being moved, and when the mouse button was released, the node item's call to update() was discarded, as the item was "already dirty". The fix is to allow invalidation of the cache even if the item is marked as dirty. Reviewed-by: bnilsen (cherry picked from commit 08feb22f9a924ce120da8b5c6e1669d2a630dd54)
Diffstat (limited to 'src/gui/graphicsview/qgraphicsscene.cpp')
0 files changed, 0 insertions, 0 deletions