CascadeDelegate.qml 338 B

12345678910111213141516171819202122
  1. import QtQuick 2.5
  2. import Box2D 2.0
  3. import Qt.labs.settings 1.0
  4. import "../.."
  5. ArtBoxBody {
  6. signal beyondThePale(var item)
  7. onYChanged: {
  8. if (y > root.height) {
  9. beyondThePale(this)
  10. }
  11. }
  12. density: 1.0
  13. friction: 0.0
  14. restitution: 0.0
  15. fixedRotation: true
  16. bodyType: Body.Dynamic
  17. }