[vlmc-devel] Add Cursor.qml

Yikai Lu git at videolan.org
Sun Jul 10 18:03:20 CEST 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Sat Jul  9 18:54:24 2016 +0900| [fb8f479a6bd3f00ce8c76b67f34838446a8ed016] | committer: Yikai Lu

Add Cursor.qml

> https://code.videolan.org/videolan/vlmc/commit/fb8f479a6bd3f00ce8c76b67f34838446a8ed016
---

 src/Gui/timeline/Cursor.qml | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/Gui/timeline/Cursor.qml b/src/Gui/timeline/Cursor.qml
new file mode 100644
index 0000000..e60d9fc
--- /dev/null
+++ b/src/Gui/timeline/Cursor.qml
@@ -0,0 +1,11 @@
+import QtQuick 2.0
+
+Rectangle {
+    width: 2
+    color: "#c24a00"
+
+    onXChanged: {
+         x = x > initPosOfCursor ? x : initPosOfCursor;
+    }
+}
+



More information about the Vlmc-devel mailing list