[vlmc-devel] Add EffectsListView.qml
Yikai Lu
git at videolan.org
Mon Aug 29 17:22:04 CEST 2016
vlmc | branch: medialibrary | Yikai Lu <luyikei.qmltu at gmail.com> | Mon Aug 29 10:00:01 2016 -0500| [a03a0e2dedfc163e724542b9a161a73204631c2a] | committer: Yikai Lu
Add EffectsListView.qml
> https://code.videolan.org/videolan/vlmc/commit/a03a0e2dedfc163e724542b9a161a73204631c2a
---
src/Gui/effectsengine/EffectsListView.qml | 35 +++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/src/Gui/effectsengine/EffectsListView.qml b/src/Gui/effectsengine/EffectsListView.qml
new file mode 100644
index 0000000..db11eb5
--- /dev/null
+++ b/src/Gui/effectsengine/EffectsListView.qml
@@ -0,0 +1,35 @@
+import QtQuick 2.0
+import QtQuick.Controls 1.4
+
+Rectangle {
+ anchors.fill: parent
+ color: "#999999"
+
+ ListModel {
+ id: effects
+ }
+
+ Component.onCompleted: {
+ var effectsInfo = view.effects();
+ for ( var i = 0; i < effectsInfo.length; ++i ) {
+ effects.append( effectsInfo[i] );
+ }
+ }
+
+ ScrollView {
+ id: sView
+ height: parent.height
+ width: parent.width
+
+ ListView {
+ width: sView.viewport.width
+ model: effects
+ delegate: Effect {
+ identifier: model.identifier
+ name: model.name
+ description: model.description
+ author: model.author
+ }
+ }
+ }
+}
More information about the Vlmc-devel
mailing list