Move some toys back to examples
authorAlan Alpert <alan.alpert@nokia.com>
Tue, 28 Feb 2012 01:30:16 +0000 (11:30 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 28 Feb 2012 08:19:53 +0000 (09:19 +0100)
tvtennis, corkboards and dynamicscene are more examples than demos.

clocks and tic-tac-toe are remaining demos for now.

Change-Id: I3d9501a4742349a9eb7efdad0d06aa6e7cb02c14
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
22 files changed:
examples/qml/dynamicscene/content/Button.qml [moved from examples/demos/dynamicscene/content/Button.qml with 100% similarity]
examples/qml/dynamicscene/content/GenericSceneItem.qml [moved from examples/demos/dynamicscene/content/GenericSceneItem.qml with 100% similarity]
examples/qml/dynamicscene/content/PaletteItem.qml [moved from examples/demos/dynamicscene/content/PaletteItem.qml with 100% similarity]
examples/qml/dynamicscene/content/PerspectiveItem.qml [moved from examples/demos/dynamicscene/content/PerspectiveItem.qml with 100% similarity]
examples/qml/dynamicscene/content/Sun.qml [moved from examples/demos/dynamicscene/content/Sun.qml with 100% similarity]
examples/qml/dynamicscene/content/images/NOTE [moved from examples/demos/dynamicscene/content/images/NOTE with 100% similarity]
examples/qml/dynamicscene/content/images/face-smile.png [moved from examples/demos/dynamicscene/content/images/face-smile.png with 100% similarity]
examples/qml/dynamicscene/content/images/moon.png [moved from examples/demos/dynamicscene/content/images/moon.png with 100% similarity]
examples/qml/dynamicscene/content/images/rabbit_brown.png [moved from examples/demos/dynamicscene/content/images/rabbit_brown.png with 100% similarity]
examples/qml/dynamicscene/content/images/rabbit_bw.png [moved from examples/demos/dynamicscene/content/images/rabbit_bw.png with 100% similarity]
examples/qml/dynamicscene/content/images/star.png [moved from examples/demos/dynamicscene/content/images/star.png with 100% similarity]
examples/qml/dynamicscene/content/images/sun.png [moved from examples/demos/dynamicscene/content/images/sun.png with 100% similarity]
examples/qml/dynamicscene/content/images/tree_s.png [moved from examples/demos/dynamicscene/content/images/tree_s.png with 100% similarity]
examples/qml/dynamicscene/content/itemCreation.js [moved from examples/demos/dynamicscene/content/itemCreation.js with 100% similarity]
examples/qml/dynamicscene/dynamicscene.qml [moved from examples/demos/dynamicscene/dynamicscene.qml with 100% similarity]
examples/qtquick/animation/animation.qml
examples/qtquick/animation/behaviors/tvtennis.qml [moved from examples/demos/tvtennis/tvtennis.qml with 99% similarity]
examples/qtquick/touchinteraction/flickable/content/Day.qml [moved from examples/demos/corkboards/content/Day.qml with 100% similarity]
examples/qtquick/touchinteraction/flickable/content/cork.jpg [moved from examples/demos/corkboards/content/cork.jpg with 100% similarity]
examples/qtquick/touchinteraction/flickable/content/note-yellow.png [moved from examples/demos/corkboards/content/note-yellow.png with 100% similarity]
examples/qtquick/touchinteraction/flickable/content/tack.png [moved from examples/demos/corkboards/content/tack.png with 100% similarity]
examples/qtquick/touchinteraction/flickable/corkboards.qml [moved from examples/demos/corkboards/corkboards.qml with 100% similarity]

index 62a85a9..bca6845 100644 (file)
@@ -58,6 +58,8 @@ import "../../shared" as Examples
 
     Wiggly Text demonstrates using more complex behaviors to animate and wiggle some text around as you drag it.
 
+    Tv Tennis demonstrates using more complex behaviors to get paddles following a ball for an infinite game.
+
     Easing Curves shows off all the easing curves available in Qt Quick animations.
 
     States demonstrates how the properties of an item can vary between states.
@@ -80,6 +82,7 @@ Item {
             addExample("PropertyAnimation", "Interpolates between numbers", Qt.resolvedUrl("basics/property-animation.qml"));
             addExample("Behaviors", "Animates procedural movement", Qt.resolvedUrl("behaviors/behavior-example.qml"));
             addExample("Wiggly Text", "Text that wiggles as you drag it", Qt.resolvedUrl("behaviors/wigglytext.qml"));
+            addExample("Tv Tennis", "Paddles that follow a ball", Qt.resolvedUrl("behaviors/tvtennis.qml"));
             addExample("Easing Curves", "Compare available easing curves", Qt.resolvedUrl("easing/easing.qml"));
             addExample("States", "Simple states", Qt.resolvedUrl("states/states.qml"));
             addExample("Transitions", "Simple states with animated transitions", Qt.resolvedUrl("states/transitions.qml"));
similarity index 99%
rename from examples/demos/tvtennis/tvtennis.qml
rename to examples/qtquick/animation/behaviors/tvtennis.qml
index 63866e3..108f19a 100644 (file)
@@ -42,7 +42,7 @@ import QtQuick 2.0
 
 Rectangle {
     id: page
-    width: 640; height: 480
+    width: 320; height: 480;
     color: "Black"
 
     // Make a ball to bounce