ArtDelegate.qml 418 B

1234567891011121314151617181920212223
  1. import QtQuick 2.5
  2. import Box2D 2.0
  3. import Qt.labs.settings 1.0
  4. ImageBoxBody {
  5. id: picture
  6. signal beyondThePale(var item)
  7. property var effect
  8. onYChanged:
  9. if (y > globalFloor.y)
  10. beyondThePale(this)
  11. density: 1.0
  12. friction: 0
  13. restitution: settings.restitution
  14. fixedRotation: parent.fixedRotation
  15. bodyType: Body.Dynamic
  16. source: imageModel.randomPicture()
  17. }