aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/scenegraph/util/qsgpainternode.cpp
diff options
context:
space:
mode:
authorCharles Yin <charles.yin@nokia.com>2011-10-27 13:06:57 +1000
committerQt by Nokia <qt-info@nokia.com>2011-10-28 22:31:32 +0200
commit1bc655b46738811268b50b318a3f3cd03ff02aff (patch)
tree4bd5d7f5659033b51d7039f90e5237614d826594 /src/declarative/scenegraph/util/qsgpainternode.cpp
parent4e644d592655c806bacbce051eb4b7d1f8aacd67 (diff)
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>
Diffstat (limited to 'src/declarative/scenegraph/util/qsgpainternode.cpp')
-rw-r--r--src/declarative/scenegraph/util/qsgpainternode.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/scenegraph/util/qsgpainternode.cpp b/src/declarative/scenegraph/util/qsgpainternode.cpp
index a89dd75bac..f3e5202241 100644
--- a/src/declarative/scenegraph/util/qsgpainternode.cpp
+++ b/src/declarative/scenegraph/util/qsgpainternode.cpp
@@ -378,9 +378,9 @@ void QSGPainterNode::setSize(const QSize &size)
m_dirtyTexture = true;
}
-void QSGPainterNode::setDirty(bool d, const QRect &dirtyRect)
+void QSGPainterNode::setDirty(const QRect &dirtyRect)
{
- m_dirtyContents = d;
+ m_dirtyContents = true;
m_dirtyRect = dirtyRect;
if (m_mipmapping)