traverso-commit
[Top][All Lists]
Advanced

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

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


From: Nicola Doebelin
Subject: [Traverso-commit] traverso/src/sheetcanvas Cursors.cpp
Date: Fri, 06 Mar 2009 17:32:03 +0000

CVSROOT:        /sources/traverso
Module name:    traverso
Changes by:     Nicola Doebelin <n_doebelin>    09/03/06 17:32:03

Modified files:
        src/sheetcanvas: Cursors.cpp 

Log message:
        * fixes painting bug of the playhead during animated scrolling on OS X

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/sheetcanvas/Cursors.cpp?cvsroot=traverso&r1=1.8&r2=1.9

Patches:
Index: Cursors.cpp
===================================================================
RCS file: /sources/traverso/traverso/src/sheetcanvas/Cursors.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- Cursors.cpp 21 Feb 2009 17:42:19 -0000      1.8
+++ Cursors.cpp 6 Mar 2009 17:32:03 -0000       1.9
@@ -29,6 +29,7 @@
 
 #include <QPen>
 #include <QScrollBar>
+#include <QApplication>
                
 // Always put me below _all_ includes, this is needed
 // in case we run with memory leak detection enabled!
@@ -157,6 +158,7 @@
        // When timeref_scalefactor is below 5120, the playhead moves faster 
then teh view scrolls
        // so it's better to keep the view centered around the playhead.
        if (m_mode == CENTERED || (m_sv->timeref_scalefactor <= 10280) ) {
+               qApp->processEvents();
                m_sv->set_hscrollbar_value(int(scenePos().x()) - (int)(0.5 * 
vpWidth));
                return;
        }
@@ -217,6 +219,7 @@
        }
        
        if (m_sv->hscrollbar_value() != newXPos) {
+               qApp->processEvents();
                m_sv->set_hscrollbar_value(newXPos);
        }
 }




reply via email to

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