import QtQuick 2.5
import PictureModel 1.0

Item {
    id: root

    property var columnArray: []
    property var pictureDelegate: Component {
        ArtImage {}
    }

    anchors.fill: parent

    Timer {
        id: globalDeathTimer
        running: globalVars.globalDeathTimer && globalSettings.commonFeed && globalUtil.primed
        repeat: true
        interval: globalUtil.adjustedInterval
        onTriggered: columnArray[globalUtil.columnSelection()].shift()
    }

    Repeater {
        model: globalSettings.columnCount
        delegate: columnComponent
    }

    PictureModel {
        id: imageModel
        Component.onCompleted: {
            globalUtil.imageModel = imageModel
        }
    }
}
