traverso-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Traverso-commit] traverso/src/traverso/songcanvas Cursors.cpp


From: Remon Sijrier
Subject: [Traverso-commit] traverso/src/traverso/songcanvas Cursors.cpp
Date: Sat, 13 Oct 2007 20:53:02 +0000

CVSROOT:        /sources/traverso
Module name:    traverso
Changes by:     Remon Sijrier <r_sijrier>       07/10/13 20:53:02

Modified files:
        src/traverso/songcanvas: Cursors.cpp 

Log message:
        * Fix playhead update_position with Qt 4.3.2  
           Although the playhead didn't move, the pos() calls returned a very 
slightly different x position (which is in the float format). As a result we 
were updating the playhead position every time update_position() was called by 
the play update timer. 

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/traverso/songcanvas/Cursors.cpp?cvsroot=traverso&r1=1.28&r2=1.29

Patches:
Index: Cursors.cpp
===================================================================
RCS file: /sources/traverso/traverso/src/traverso/songcanvas/Cursors.cpp,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -b -r1.28 -r1.29
--- Cursors.cpp 10 Sep 2007 18:44:15 -0000      1.28
+++ Cursors.cpp 13 Oct 2007 20:53:02 -0000      1.29
@@ -129,7 +129,7 @@
 {
        QPointF newPos(m_song->get_transport_location() / 
m_sv->timeref_scalefactor, 1);
        
-       if (newPos != pos() && (m_animation.state() != QTimeLine::Running)) {
+       if (int(newPos.x()) != int(pos().x()) && (m_animation.state() != 
QTimeLine::Running)) {
                setPos(newPos);
        } else {
                return;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]