Docfix: Move images to correct location and fix bugs in code sample.
authorGunnar Sletta <gunnar.sletta@digia.com>
Wed, 28 Nov 2012 06:55:20 +0000 (07:55 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 28 Nov 2012 07:52:57 +0000 (08:52 +0100)
Change-Id: I7ec530f0e1a41051e31517e6fcac5eb691d1795d
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
src/qml/doc/images/documents-definetypes-attributes.png [moved from src/quick/doc/images/documents-definetypes-attributes.png with 100% similarity]
src/qml/doc/images/documents-definetypes-simple.png [moved from src/quick/doc/images/documents-definetypes-simple.png with 100% similarity]
src/qml/doc/src/documents/definetypes.qdoc

index b8b54fa..9f7573e 100644 (file)
@@ -108,8 +108,8 @@ Rectangle {
 
     signal buttonClicked(real xPos, real yPos)
 
-    function showMousePosition() {
-        root.color = Qt.rgba(Qt.random(), Qt.random(), Qt.random(), 1)
+    function randomizeColor() {
+        root.color = Qt.rgba(Math.random(), Math.random(), Math.random(), 1)
     }
 
     width: 100; height: 100