aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick
diff options
context:
space:
mode:
authorMarco Bubke <marco.bubke@digia.com>2013-06-25 13:37:30 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-06-26 16:53:11 +0200
commitffe861a0785056a90c787172400fa6061acfcc32 (patch)
tree0c933581c686da078ef63c9367f566e8fe2d1d9a /src/quick
parenta50c8a2573f2db63e9c83152429b4f604fc34ae9 (diff)
Request paint if scene changes for the canvas item
Otherwise for every scene the canvas is simply not painted anymore in the designer. For example if you change the parent. Change-Id: I4883eab44d73a59381230755f7caa596f2b6569f Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com> Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
Diffstat (limited to 'src/quick')
-rw-r--r--src/quick/items/context2d/qquickcanvasitem.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/quick/items/context2d/qquickcanvasitem.cpp b/src/quick/items/context2d/qquickcanvasitem.cpp
index 1b33680361..8844eb91bb 100644
--- a/src/quick/items/context2d/qquickcanvasitem.cpp
+++ b/src/quick/items/context2d/qquickcanvasitem.cpp
@@ -626,8 +626,11 @@ void QQuickCanvasItem::itemChange(QQuickItem::ItemChange change, const QQuickIte
return;
Q_D(QQuickCanvasItem);
- if (d->available)
+ if (d->available) {
+ if (d->dirtyAttributes & QQuickItemPrivate::ContentUpdateMask)
+ requestPaint();
return;
+ }
if (value.window== 0)
return;