[vlmc-devel] main.qml: Add zoomIn/out buttons

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


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Mon Aug  8 19:39:06 2016 -0500| [cd42e070c97be3ef501e048ef212e0be03748a0a] | committer: Yikai Lu

main.qml: Add zoomIn/out buttons

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

 src/Gui/timeline/main.qml | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/src/Gui/timeline/main.qml b/src/Gui/timeline/main.qml
index 370801f..75ce920 100644
--- a/src/Gui/timeline/main.qml
+++ b/src/Gui/timeline/main.qml
@@ -486,6 +486,28 @@ Rectangle {
                             text: "C"
                             selected: false
                         }
+
+                        PropertyButton {
+                            id: zoomInButton
+                            text: "+"
+                            selected: false
+
+                            onPressed: {
+                                zoomIn( 2.0 );
+                                selected = false;
+                            }
+                        }
+
+                        PropertyButton {
+                            id: zoomOutButton
+                            text: "-"
+                            selected: false
+
+                            onPressed: {
+                                zoomIn( 0.5 );
+                                selected = false;
+                            }
+                        }
                     }
                 }
             }



More information about the Vlmc-devel mailing list