From: Marco Bubke Date: Tue, 25 Jun 2013 11:37:30 +0000 (+0200) Subject: Request paint if scene changes for the canvas item X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=ffe861a0785056a90c787172400fa6061acfcc32;p=konrad%2Fqtdeclarative.git 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 Reviewed-by: Gunnar Sletta --- diff --git a/src/quick/items/context2d/qquickcanvasitem.cpp b/src/quick/items/context2d/qquickcanvasitem.cpp index 1b33680..8844eb9 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;