From 3320d031896fe36404552d03c639f535c78a8a6e Mon Sep 17 00:00:00 2001 From: Warwick Allison Date: Wed, 6 Jan 2010 15:08:00 +1000 Subject: Avoid spurious error messages Delegate is reused in Grid and PathView, so PathView attributes might not be defined --- demos/declarative/flickr/flickr-desktop.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/demos/declarative/flickr/flickr-desktop.qml b/demos/declarative/flickr/flickr-desktop.qml index 9c85237..10babeb 100644 --- a/demos/declarative/flickr/flickr-desktop.qml +++ b/demos/declarative/flickr/flickr-desktop.qml @@ -12,11 +12,13 @@ Item { id: photoDelegate Item { id: wrapper; width: 85; height: 85 - scale: wrapper.PathView.scale; z: wrapper.PathView.z + scale: wrapper.PathView.scale ? wrapper.PathView.scale : 1 + z: wrapper.PathView.z ? wrapper.PathView.z : 0 transform: Rotation { id: itemRotation; origin.x: wrapper.width/2; origin.y: wrapper.height/2 - axis.y: 1; axis.z: 0; angle: wrapper.PathView.angle + axis.y: 1; axis.z: 0 + angle: wrapper.PathView.angle ? wrapper.PathView.angle : 0 } Connection { -- cgit v0.12