diff options
author | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2010-01-22 11:46:32 (GMT) |
---|---|---|
committer | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2010-01-22 17:45:58 (GMT) |
commit | 3e51b6c872e86a5e68a8e59770fc1bc32b84da0c (patch) | |
tree | 3f39af6838ee89b8d726e5e718660cbd34af3e43 /src/gui/graphicsview/qgraphicsitem_p.h | |
parent | 6968a9b9281ef191c566a8e44447fc299cbdd4b7 (diff) | |
download | Qt-3e51b6c872e86a5e68a8e59770fc1bc32b84da0c.zip Qt-3e51b6c872e86a5e68a8e59770fc1bc32b84da0c.tar.gz Qt-3e51b6c872e86a5e68a8e59770fc1bc32b84da0c.tar.bz2 |
QGraphicsWidget is painted twice on the inital show.
Problem occured when doing something in the polishEvent() which
eventually ended up as an update(). The problem was that in
QGraphicsScene::addItem we scheduled a polish event after scheduling
an update, resulting in update requests being processed before polish
requests.
Auto-test included.
Task-number: QTBUG-6956
Reviewed-by: alexis
Diffstat (limited to 'src/gui/graphicsview/qgraphicsitem_p.h')
-rw-r--r-- | src/gui/graphicsview/qgraphicsitem_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicsitem_p.h b/src/gui/graphicsview/qgraphicsitem_p.h index ac10aa7..bdd8863 100644 --- a/src/gui/graphicsview/qgraphicsitem_p.h +++ b/src/gui/graphicsview/qgraphicsitem_p.h @@ -178,6 +178,7 @@ public: sequentialOrdering(1), updateDueToGraphicsEffect(0), scenePosDescendants(0), + pendingPolish(0), globalStackingOrder(-1), q_ptr(0) { @@ -486,6 +487,7 @@ public: quint32 sequentialOrdering : 1; quint32 updateDueToGraphicsEffect : 1; quint32 scenePosDescendants : 1; + quint32 pendingPolish : 1; // Optional stacking order int globalStackingOrder; |