Updated examples to work with 1.1
[qml-box2d:qml-box2d-folibis.git] / examples / gear / Wall.qml
1 import QtQuick 2.2
2 import Box2D 1.1
3
4 Body {
5     bodyType: Body.Static
6     signal beginContact (variant other)
7     fixtures: Box {
8         anchors.fill: parent
9         friction: 1
10         density: 1
11         onBeginContact: {
12             parent.beginContact(other)
13         }
14     }
15     Image {
16         source: "images/wall.jpg"
17         fillMode: Image.Tile
18         anchors.fill: parent
19     }
20 }