diff options
author | Charles Yin <yinyunqiao@gmail.com> | 2012-03-28 00:06:28 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-30 05:18:32 +0200 |
commit | 200f783745b571725f899f08c34d1155be632523 (patch) | |
tree | 146c481f5ad5bbb900acf9fbf9251a68d633c266 /tests/auto/quick/qquickcanvasitem/data/tst_canvas.qml | |
parent | 652fa5b7a44d2d7bb38126b4659e7347caa5d4a8 (diff) |
Fix context2d transform issues
After calling transform related methods, the current path should be transformed with the same method but in reversal mode.
So that during painting, the painter will apply the CTM to this path again, otherwise path will be transformed twice.
Change-Id: I7e12bdff82dabb408f47152ba07b608872d4093f
Task-number: QTBUG-24988
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Diffstat (limited to 'tests/auto/quick/qquickcanvasitem/data/tst_canvas.qml')
-rw-r--r-- | tests/auto/quick/qquickcanvasitem/data/tst_canvas.qml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickcanvasitem/data/tst_canvas.qml b/tests/auto/quick/qquickcanvasitem/data/tst_canvas.qml index 23d7b719ff..a70c798594 100644 --- a/tests/auto/quick/qquickcanvasitem/data/tst_canvas.qml +++ b/tests/auto/quick/qquickcanvasitem/data/tst_canvas.qml @@ -271,6 +271,7 @@ Rectangle { ctx = c.getContext('2D'); verify(ctx); compare(ctx.canvas, c); + ignoreWarning(Qt.resolvedUrl("tst_canvas.qml") + ":10:9: QML Canvas: Canvas already initialized with a different context type"); ctx = c.getContext('invalid'); verify(!ctx); c.destroy(); |