[vlmc-devel] TracksRuler: Use the optimized update()

Yikai Lu git at videolan.org
Wed Jun 29 14:43:03 CEST 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Wed Jun 29 21:11:08 2016 +0900| [ba61d59c2e9cfd2e089bf634f71e68647530c499] | committer: Yikai Lu

TracksRuler: Use the optimized update()

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

 src/Gui/timeline/TracksRuler.cpp | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/src/Gui/timeline/TracksRuler.cpp b/src/Gui/timeline/TracksRuler.cpp
index 3ed010a..216f4ed 100644
--- a/src/Gui/timeline/TracksRuler.cpp
+++ b/src/Gui/timeline/TracksRuler.cpp
@@ -102,13 +102,8 @@ TracksRuler::setDuration( int duration )
     int oldDuration = m_duration;
     m_duration = duration;
 
-    Q_UNUSED( oldDuration );
-    //FIXME The optimized update() version cause wrong values to be shown in
-    //the ruler. I don't understand what's happening here.
-
-    /*update( ( int ) ( qMin( oldDuration, m_duration ) * m_factor - 1 - m_offset ), 0,
-            ( int ) ( qAbs( oldDuration - m_duration ) * m_factor + 2 ), height() );*/
-    update();
+    update( ( int ) ( qMin( oldDuration, m_duration ) * m_factor - 1 - m_offset ), 0,
+            ( int ) ( qAbs( oldDuration - m_duration ) * m_factor + 2 ), height() );
 }
 
 void



More information about the Vlmc-devel mailing list