TrackContainer.qml 452 Bytes
Newer Older
luyikei's avatar
luyikei committed
1 2 3 4 5 6 7 8 9
import QtQuick 2.0

ListView {
    id: container

    property bool isUpward
    property string type
    property ListModel tracks

10
    width: parent.width
luyikei's avatar
luyikei committed
11 12 13 14 15 16 17 18 19 20 21 22 23
    height: tracks.count * trackHeight
    verticalLayoutDirection: isUpward ? ListView.BottomToTop  : ListView.TopToBottom

    interactive: false
    focus: true
    model: tracks
    delegate: Track {
        trackId: index
        type: container.type
        clips: model["clips"]
    }
}