From ffe861a0785056a90c787172400fa6061acfcc32 Mon Sep 17 00:00:00 2001 From: Marco Bubke Date: Tue, 25 Jun 2013 13:37:30 +0200 Subject: [PATCH] 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 --- src/quick/items/context2d/qquickcanvasitem.cpp | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) 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; -- 1.7.2.5