View.qml 716 B

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