diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2011-08-30 12:58:45 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-08-31 10:11:56 +0200 |
commit | 1a61dda170589fe7a419930dec5b6d44375ffbe6 (patch) | |
tree | 4d6b0cdded587ff2b4e70b3065451463f149ce5b /examples | |
parent | 16f60d8ab6cdddeff860c3e2179cf2189908fc3e (diff) |
Rename PointAttractor x,y to pointX,pointY
Avoid hiding the Item properties, which still have an effect.
Change-Id: I2449c376fe0f2c769792e4bb7b23899672cce5e1
Reviewed-on: http://codereview.qt.nokia.com/3837
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Diffstat (limited to 'examples')
3 files changed, 16 insertions, 16 deletions
diff --git a/examples/declarative/particles/asteroid/blackhole.qml b/examples/declarative/particles/asteroid/blackhole.qml index 441f4c38d6..57474f955e 100644 --- a/examples/declarative/particles/asteroid/blackhole.qml +++ b/examples/declarative/particles/asteroid/blackhole.qml @@ -146,7 +146,7 @@ Rectangle{ colorVariation: 0.2 } PointAttractor{ - id: gs; x: root.width/2; y: root.height/2; strength: 4000000; + id: gs; pointX: root.width/2; pointY: root.height/2; strength: 4000000; system: particles physics: PointAttractor.Acceleration proportionalToDistance: PointAttractor.InverseQuadratic diff --git a/examples/declarative/particles/modelparticles/stream.qml b/examples/declarative/particles/modelparticles/stream.qml index 15280f7f21..0938f17cd4 100644 --- a/examples/declarative/particles/modelparticles/stream.qml +++ b/examples/declarative/particles/modelparticles/stream.qml @@ -149,8 +149,8 @@ Item{ PointAttractor{ id: force system: sys - x: root.width/2 - y: root.height/2 + pointX: root.width/2 + pointY: root.height/2 strength: -10000 active: false anchors.centerIn: parent diff --git a/examples/declarative/particles/spaceexplorer/spaceexplorer.qml b/examples/declarative/particles/spaceexplorer/spaceexplorer.qml index 727d711053..cb8acb815e 100644 --- a/examples/declarative/particles/spaceexplorer/spaceexplorer.qml +++ b/examples/declarative/particles/spaceexplorer/spaceexplorer.qml @@ -275,51 +275,51 @@ Rectangle{ system: foreground } PointAttractor{ - id: gs1; x: vorteX; y: vorteY; strength: 800000; proportionalToDistance: PointAttractor.InverseQuadratic; + id: gs1; pointX: vorteX; pointY: vorteY; strength: 800000; system: foreground } Kill{ - x: gs1.x - holeSize; - y: gs1.y - holeSize; + x: gs1.pointX - holeSize; + y: gs1.pointY - holeSize; width: holeSize * 2 height: holeSize * 2 system: foreground } PointAttractor{ - id: gs2; x: vorteX2; y: vorteY2; strength: 800000; proportionalToDistance: PointAttractor.InverseQuadratic; + id: gs2; pointX: vorteX2; pointY: vorteY2; strength: 800000; system: foreground } Kill{ - x: gs2.x - holeSize; - y: gs2.y - holeSize; + x: gs2.pointX - holeSize; + y: gs2.pointY - holeSize; width: holeSize * 2 height: holeSize * 2 system: foreground } PointAttractor{ - id: gs3; x: vorteX3; y: vorteY3; strength: 800000; proportionalToDistance: PointAttractor.InverseQuadratic; + id: gs3; pointX: vorteX3; pointY: vorteY3; strength: 800000; system: foreground } Kill{ - x: gs3.x - holeSize; - y: gs3.y - holeSize; + x: gs3.pointX - holeSize; + y: gs3.pointY - holeSize; width: holeSize * 2 height: holeSize * 2 system: foreground } PointAttractor{ - id: gs4; x: vorteX4; y: vorteY4; strength: 800000; - proportionalToDistance: PointAttractor.Quadratic; + id: gs4; pointX: vorteX4; pointY: vorteY4; strength: 800000; + proportionalToDistance: PointAttractor.InverseQuadratic; system: foreground } Kill{ - x: gs4.x - holeSize; - y: gs4.y - holeSize; + x: gs4.pointX - holeSize; + y: gs4.pointY - holeSize; width: holeSize * 2 height: holeSize * 2 system: foreground |