[vlmc-devel] Add Effect.qml
Yikai Lu
git at videolan.org
Mon Aug 29 17:22:05 CEST 2016
vlmc | branch: medialibrary | Yikai Lu <luyikei.qmltu at gmail.com> | Mon Aug 29 10:00:18 2016 -0500| [b91d436b3da367b9e3f8199ab2ea0b8b071e2a29] | committer: Yikai Lu
Add Effect.qml
> https://code.videolan.org/videolan/vlmc/commit/b91d436b3da367b9e3f8199ab2ea0b8b071e2a29
---
src/Gui/effectsengine/Effect.qml | 56 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 56 insertions(+)
diff --git a/src/Gui/effectsengine/Effect.qml b/src/Gui/effectsengine/Effect.qml
new file mode 100644
index 0000000..37d9554
--- /dev/null
+++ b/src/Gui/effectsengine/Effect.qml
@@ -0,0 +1,56 @@
+import QtQuick 2.0
+import QtQuick.Controls 1.4
+
+Rectangle {
+ id: effect
+ color: "#444444"
+ width: parent.width
+ height: 100
+ border.color: "#222222"
+ border.width: 1
+
+ property string identifier
+ property string name
+ property string description
+ property string author
+
+ Column {
+ width: sView.viewport.width
+
+ Text {
+ text: name
+ font.pointSize: 20
+ color: "#EEEEEE"
+ elide: Text.ElideRight
+ width: parent.width
+ }
+
+ Text {
+ text: identifier
+ color: "#EEEEEE"
+ elide: Text.ElideRight
+ width: parent.width
+ }
+
+ Text {
+ text: description
+ color: "#EEEEEE"
+ elide: Text.ElideRight
+ width: parent.width
+ }
+
+ Text {
+ text: author
+ color: "#EEEEEE"
+ elide: Text.ElideRight
+ width: parent.width
+ }
+ }
+
+ MouseArea {
+ anchors.fill: parent
+ onPressed: {
+ view.startDrag( identifier );
+ }
+ }
+}
More information about the Vlmc-devel
mailing list