View.qml 652 B

1234567891011121314151617181920212223242526272829303132
  1. import QtQuick 2.5
  2. Item {
  3. id: root
  4. property var columnArray: []
  5. property var pictureDelegate: Component {
  6. ArtImage {}
  7. }
  8. property var effectDelegate: Component {
  9. VisualEffect {}
  10. }
  11. function reset() {
  12. columnArray = []
  13. }
  14. anchors.fill: parent
  15. Timer {
  16. id: globalDeathTimer
  17. running: globalSettings.commonFeed && globalUtil.primed
  18. repeat: true
  19. interval: globalUtil.adjustedInterval
  20. onTriggered: columnArray[globalUtil.columnSelection()].shift()
  21. }
  22. Repeater {
  23. model: globalSettings.columnCount
  24. delegate: columnComponent
  25. }
  26. }