diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2010-05-20 17:23:19 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2010-05-20 17:23:19 (GMT) |
commit | 0a2ef85bc7c560f38f5ba591968ce49969893a1c (patch) | |
tree | 0a4352d74c495637a0b137502d3601e918f6a3c1 /examples/declarative | |
parent | dc5a426dba72eb1193f6cce913ece94d369d0fbe (diff) | |
download | Qt-0a2ef85bc7c560f38f5ba591968ce49969893a1c.zip Qt-0a2ef85bc7c560f38f5ba591968ce49969893a1c.tar.gz Qt-0a2ef85bc7c560f38f5ba591968ce49969893a1c.tar.bz2 |
Make dynamicscene example embeddeable in another graphics scene
Diffstat (limited to 'examples/declarative')
-rw-r--r-- | examples/declarative/toys/dynamicscene/qml/itemCreation.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/declarative/toys/dynamicscene/qml/itemCreation.js b/examples/declarative/toys/dynamicscene/qml/itemCreation.js index 305cf7a..e74f7b0 100644 --- a/examples/declarative/toys/dynamicscene/qml/itemCreation.js +++ b/examples/declarative/toys/dynamicscene/qml/itemCreation.js @@ -5,7 +5,7 @@ var posnInWindow; function startDrag(mouse) { - posnInWindow = paletteItem.mapToItem(null, 0, 0); + posnInWindow = paletteItem.mapToItem(window, 0, 0); startingMouse = { x: mouse.x, y: mouse.y } loadComponent(); } |