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 18:21:21 +0000

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

Modified files:
        src/sheetcanvas: Cursors.cpp 

Log message:
        * make the playhead painting fix OS-X-only

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

Patches:
Index: Cursors.cpp
===================================================================
RCS file: /sources/traverso/traverso/src/sheetcanvas/Cursors.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- Cursors.cpp 6 Mar 2009 18:03:54 -0000       1.10
+++ Cursors.cpp 6 Mar 2009 18:21:18 -0000       1.11
@@ -158,7 +158,9 @@
        // 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) ) {
+               #if defined (Q_WS_MAC)
                qApp->processEvents();
+               #endif
                m_sv->set_hscrollbar_value(int(scenePos().x()) - (int)(0.5 * 
vpWidth));
                return;
        }
@@ -219,7 +221,9 @@
        }
        
        if (m_sv->hscrollbar_value() != newXPos) {
+               #if defined (Q_WS_MAC)
                qApp->processEvents();
+               #endif
                m_sv->set_hscrollbar_value(newXPos);
        }
 }




reply via email to

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