From efecee2ca71bb89c9e40090c50fd5c27aeadbd18 Mon Sep 17 00:00:00 2001 From: Alan Alpert Date: Fri, 19 Feb 2010 12:15:43 +0100 Subject: Fix dynamic example Dynamic property creation appears to have been restricted. --- examples/declarative/dynamic/qml/PerspectiveItem.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/declarative/dynamic/qml/PerspectiveItem.qml b/examples/declarative/dynamic/qml/PerspectiveItem.qml index 728c3a5..a0dfad3 100644 --- a/examples/declarative/dynamic/qml/PerspectiveItem.qml +++ b/examples/declarative/dynamic/qml/PerspectiveItem.qml @@ -6,6 +6,7 @@ Image { property double scaleFactor: Math.max((y+height-250)*0.01, 0.3) property double scaledBottom: y + (height+height*scaleFactor)/2 property bool onLand: scaledBottom > window.height/2 + property string image //Needed for compatibility with GenericItem opacity: onLand ? 1 : 0.25 onCreatedChanged: if (created && !onLand) { tree.destroy() } else { z = scaledBottom } scale: scaleFactor -- cgit v0.12