Warning, /education/gcompris/external/qml-box2d/examples/monera/monera.qml is written in an unsupported language. File is not indexed.
0001 import QtQuick 2.0 0002 import Box2D 2.0 0003 import "../shared" 0004 0005 Rectangle { 0006 id: screen 0007 0008 property int selected: -1 0009 0010 color: "black" 0011 0012 width: 800 0013 height: 400 0014 0015 SpeciesModel { 0016 id: speciesModel 0017 } 0018 0019 World { 0020 id: physicsWorld 0021 gravity: Qt.point(0, 0) 0022 } 0023 0024 Repeater { 0025 anchors.fill: parent 0026 model: speciesModel 0027 delegate: SpeciesInfo { 0028 id: speciesInfo 0029 x: Math.random() * (screen.width - radius) 0030 y: Math.random() * (screen.height - radius) 0031 expanded: index == screen.selected 0032 speciesName: species 0033 descriptionText: description 0034 photoUrl: photo 0035 onSelected: screen.selected = index 0036 } 0037 } 0038 0039 ScreenBoundaries {} 0040 0041 DebugDraw { 0042 world: physicsWorld 0043 visible: false 0044 } 0045 }