summaryrefslogtreecommitdiffstats
path: root/examples/declarative/toys
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2010-05-20 17:23:19 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2010-05-20 17:23:19 (GMT)
commit0a2ef85bc7c560f38f5ba591968ce49969893a1c (patch)
tree0a4352d74c495637a0b137502d3601e918f6a3c1 /examples/declarative/toys
parentdc5a426dba72eb1193f6cce913ece94d369d0fbe (diff)
downloadQt-0a2ef85bc7c560f38f5ba591968ce49969893a1c.zip
Qt-0a2ef85bc7c560f38f5ba591968ce49969893a1c.tar.gz
Qt-0a2ef85bc7c560f38f5ba591968ce49969893a1c.tar.bz2
Make dynamicscene example embeddeable in another graphics scene
Diffstat (limited to 'examples/declarative/toys')
-rw-r--r--examples/declarative/toys/dynamicscene/qml/itemCreation.js2
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();
}