[vlmc-devel] main.qml: Add cutModeButton

Yikai Lu git at videolan.org
Fri Aug 12 16:52:28 CEST 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Mon Aug  8 17:26:45 2016 -0500| [7296f82e8c757355e82f9005c0d0d3c47e9ffc76] | committer: Yikai Lu

main.qml: Add cutModeButton

> https://code.videolan.org/videolan/vlmc/commit/7296f82e8c757355e82f9005c0d0d3c47e9ffc76
---

 src/Gui/timeline/main.qml | 19 +++++++++++++++----
 1 file changed, 15 insertions(+), 4 deletions(-)

diff --git a/src/Gui/timeline/main.qml b/src/Gui/timeline/main.qml
index d83095f..370801f 100644
--- a/src/Gui/timeline/main.qml
+++ b/src/Gui/timeline/main.qml
@@ -21,6 +21,7 @@ Rectangle {
     property var selectedClips: [] // Actual clip item objects
     property var groups: [] // list of lists of clip uuids
     property alias isMagneticMode: magneticModeButton.selected
+    property alias isCutMode: cutModeButton.selected
 
     property int trackHeight: 30
 
@@ -471,10 +472,20 @@ Rectangle {
                     width: parent.width - x * 2
                     height: parent.height / 2
 
-                    PropertyButton {
-                        id: magneticModeButton
-                        text: "M"
-                        selected: true
+                    Row {
+                        spacing: 2
+
+                        PropertyButton {
+                            id: magneticModeButton
+                            text: "M"
+                            selected: true
+                        }
+
+                        PropertyButton {
+                            id: cutModeButton
+                            text: "C"
+                            selected: false
+                        }
                     }
                 }
             }



More information about the Vlmc-devel mailing list