[vlmc-devel] Timeline: Introduce a const value of the padding of the timeline

Yikai Lu git at videolan.org
Tue Jul 26 16:12:41 CEST 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Tue Jul 26 21:57:21 2016 +0900| [1748af358f23ad388aadb544d71b940ed083b1d0] | committer: Yikai Lu

Timeline: Introduce a const value of the padding of the timeline

> https://code.videolan.org/videolan/vlmc/commit/1748af358f23ad388aadb544d71b940ed083b1d0
---

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

diff --git a/src/Gui/timeline/main.qml b/src/Gui/timeline/main.qml
index 5c835b3..ea518c4 100644
--- a/src/Gui/timeline/main.qml
+++ b/src/Gui/timeline/main.qml
@@ -360,13 +360,15 @@ Rectangle {
         id: sView
         height: page.height
         width: page.width
-        flickableItem.contentWidth: Math.max( page.width, ftop( length ) + initPosOfCursor + 100 )
+
+        readonly property int sViewPadding: 50
+
+        flickableItem.contentWidth: Math.max( page.width, ftop( length ) + initPosOfCursor + sViewPadding )
 
         Flickable {
 
             Column {
                 width: parent.width
-
                 Row {
                     width: parent.width
                     Rectangle {



More information about the Vlmc-devel mailing list