Fix PaintedItem redraw bug
authorCharles Yin <charles.yin@nokia.com>
Thu, 27 Oct 2011 03:06:57 +0000 (13:06 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 28 Oct 2011 20:31:32 +0000 (22:31 +0200)
commit1bc655b46738811268b50b318a3f3cd03ff02aff
tree4bd5d7f5659033b51d7039f90e5237614d826594
parent4e644d592655c806bacbce051eb4b7d1f8aacd67
Fix PaintedItem redraw bug

1) After QQuickItem::update() being called (means item's content is dirty),
   the paint() function should always been called, so the contentsDirty
   and geometryDirty flags are not needed.
2) Update the smile example to validate the above changes

Task-number:QTBUG-22250
Change-Id: I5a72f18e6982bdb3ba23e78a253c2876aca2e8cb
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Reviewed-by: Yoann Lopes <yoann.lopes@nokia.com>
examples/declarative/painteditem/smile/main.cpp
examples/declarative/painteditem/smile/smile.qml
src/declarative/items/qquickpainteditem.cpp
src/declarative/items/qquickpainteditem.h
src/declarative/items/qquickpainteditem_p.h
src/declarative/scenegraph/util/qsgpainternode.cpp
src/declarative/scenegraph/util/qsgpainternode_p.h