[vlmc-devel] Add TrackContainer.qml
Yikai Lu
git at videolan.org
Sun Jul 10 18:03:23 CEST 2016
vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Sat Jul 9 18:54:51 2016 +0900| [11ecb901fbfc2ac0747851e99e552a22d23e3ed5] | committer: Yikai Lu
Add TrackContainer.qml
> https://code.videolan.org/videolan/vlmc/commit/11ecb901fbfc2ac0747851e99e552a22d23e3ed5
---
src/Gui/timeline/TrackContainer.qml | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/src/Gui/timeline/TrackContainer.qml b/src/Gui/timeline/TrackContainer.qml
new file mode 100644
index 0000000..6bcd649
--- /dev/null
+++ b/src/Gui/timeline/TrackContainer.qml
@@ -0,0 +1,23 @@
+import QtQuick 2.0
+
+ListView {
+ id: container
+
+ property bool isUpward
+ property string type
+ property ListModel tracks
+
+ width: page.width
+ 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"]
+ }
+}
+
More information about the Vlmc-devel
mailing list