Don't repaint the Canvas if it's just changing position.

Task-number: QTBUG-33005

Change-Id: I94613c0a0e066798800e068aee7c6288fce54dbd
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
This commit is contained in:
Mitch Curtis 2013-08-15 15:04:01 +02:00 committed by The Qt Project
parent 42a4a0df58
commit 97daddee7a
1 changed files with 1 additions and 1 deletions

View File

@ -597,7 +597,7 @@ void QQuickCanvasItem::geometryChanged(const QRectF &newGeometry, const QRectF &
emit canvasWindowChanged();
}
if (d->available)
if (d->available && newSize != oldGeometry.size())
requestPaint();
}