[vlmc-devel] Timeline: Use toolbar buttons to select tools

Hugo Beauzée-Luyssen git at videolan.org
Sun Oct 30 22:36:42 CET 2016


vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Sun Oct 30 19:23:10 2016 +0100| [373e12841e91f95581d7fb5b1444330b91f7c024] | committer: Hugo Beauzée-Luyssen

Timeline: Use toolbar buttons to select tools

> https://code.videolan.org/videolan/vlmc/commit/373e12841e91f95581d7fb5b1444330b91f7c024
---

 src/Gui/timeline/main.qml | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/Gui/timeline/main.qml b/src/Gui/timeline/main.qml
index 5b685e1..98050f7 100644
--- a/src/Gui/timeline/main.qml
+++ b/src/Gui/timeline/main.qml
@@ -21,7 +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 bool isCutMode: false
 
     property int trackHeight: 60
 
@@ -483,12 +483,6 @@ Rectangle {
                         }
 
                         PropertyButton {
-                            id: cutModeButton
-                            text: "C"
-                            selected: false
-                        }
-
-                        PropertyButton {
                             id: zoomInButton
                             text: "+"
                             selected: false
@@ -650,6 +644,12 @@ Rectangle {
                 zoomIn( 2 );
             scale = scaleLevel;
         }
+        onCutToolSelected: {
+            isCutMode = true;
+        }
+        onSelectionToolSelected: {
+            isCutMode = false;
+        }
     }
 
     Connections {



More information about the Vlmc-devel mailing list