diff options
author | Charles Yin <charles.yin@nokia.com> | 2011-10-11 16:23:50 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-12 02:36:56 +0200 |
commit | f1972c0cbc987a28b0bc3dce0ee03c6f4b3bad85 (patch) | |
tree | 6bd1bfa5286e1668bcb2a29f96bb85ba3149f281 /src/declarative/items/context2d/qsgcanvasitem.cpp | |
parent | ae623976b8920117e751448e2a65dab174731476 (diff) |
fix several canvasitem bugs
Change-Id: I6a6d97253fe66184736f8ac089e97aa114f0e83a
Reviewed-on: http://codereview.qt-project.org/6405
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Charles Yin <charles.yin@nokia.com>
Diffstat (limited to 'src/declarative/items/context2d/qsgcanvasitem.cpp')
-rw-r--r-- | src/declarative/items/context2d/qsgcanvasitem.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/items/context2d/qsgcanvasitem.cpp b/src/declarative/items/context2d/qsgcanvasitem.cpp index deb3493ac1..43bb734a41 100644 --- a/src/declarative/items/context2d/qsgcanvasitem.cpp +++ b/src/declarative/items/context2d/qsgcanvasitem.cpp @@ -425,6 +425,7 @@ void QSGCanvasItem::componentComplete() d->baseUrl = qmlEngine(this)->contextForObject(this)->baseUrl(); requestPaint(); updatePolish(); //force update the canvas sizes to texture for the first time + update(); d->componentCompleted = true; } @@ -453,6 +454,7 @@ QSGNode *QSGCanvasItem::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *) node = new QSGContext2DNode(this); node->setTexture(d->texture); + node->setSize(d->canvasWindow.size()); node->update(); return node; } |