examples/declarative/modelviews/parallax/parallax.qml
changeset 33 3e2da88830cd
parent 30 5dc02b23752f
--- a/examples/declarative/modelviews/parallax/parallax.qml	Tue Jul 06 15:10:48 2010 +0300
+++ b/examples/declarative/modelviews/parallax/parallax.qml	Wed Aug 18 10:37:55 2010 +0300
@@ -39,12 +39,10 @@
 ****************************************************************************/
 
 import Qt 4.7
-import "../../toys/clocks/content"
+import "../../toys/clocks/content"  // for loading the Clock element
 import "qml"
 
 Rectangle {
-    id: root
-
     width: 320; height: 480
 
     ParallaxView {
@@ -73,9 +71,8 @@
                 width: 300; height: 400
                 clip: true; 
                 source: "../../../../demos/declarative/samegame/samegame.qml"
+                Component.onCompleted: item.inAnotherDemo = true;
             }
         }
-
-        currentIndex: root.currentIndex
     }
 }