summaryrefslogtreecommitdiffstats
path: root/src/gui/styles/qcommonstyle.cpp
diff options
context:
space:
mode:
authorBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-11-12 15:33:42 (GMT)
committerBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-11-13 09:09:49 (GMT)
commit671fb279defa0a97c38c28dded767f58c67f9dac (patch)
tree1dc5793e6e625d38a4d80effaf75046af64c1273 /src/gui/styles/qcommonstyle.cpp
parent57d05153b3ef2df1f1dd38eb9560d6019e1bcd4a (diff)
downloadQt-671fb279defa0a97c38c28dded767f58c67f9dac.zip
Qt-671fb279defa0a97c38c28dded767f58c67f9dac.tar.gz
Qt-671fb279defa0a97c38c28dded767f58c67f9dac.tar.bz2
Fixes QGraphicsWidget: paint() being called before polish().
The problem is that we request an update() before we schedules a polish event in QGraphicsScene::addItems, which means paint() is being called before polishEvent(). We could try to swap the order in addItems, but that doesn't give us any guarantee that polish is delivered before update (since we have no control over what's happening from outside graphics view). A better solution is to always make sure we don't have unpolished items before we draw. Auto-test included. Task-number: QTBUG-4979 Reviewed-by: Andreas
Diffstat (limited to 'src/gui/styles/qcommonstyle.cpp')
0 files changed, 0 insertions, 0 deletions