[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Traverso-commit] traverso/src/sheetcanvas Cursors.cpp
From: |
Remon Sijrier |
Subject: |
[Traverso-commit] traverso/src/sheetcanvas Cursors.cpp |
Date: |
Sun, 15 Mar 2009 21:09:00 +0000 |
CVSROOT: /sources/traverso
Module name: traverso
Changes by: Remon Sijrier <r_sijrier> 09/03/15 21:09:00
Modified files:
src/sheetcanvas: Cursors.cpp
Log message:
* make painting fix available for all platforms, since users reported
on linux similar problems, and the solution worked for them as well!
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/sheetcanvas/Cursors.cpp?cvsroot=traverso&r1=1.14&r2=1.15
Patches:
Index: Cursors.cpp
===================================================================
RCS file: /sources/traverso/traverso/src/sheetcanvas/Cursors.cpp,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -b -r1.14 -r1.15
--- Cursors.cpp 7 Mar 2009 18:07:43 -0000 1.14
+++ Cursors.cpp 15 Mar 2009 21:09:00 -0000 1.15
@@ -162,9 +162,13 @@
// 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)
+ // For some reason on some systems the event of
+ // setting the new position doesn't result in
+ // updating the area of the old cursor position
+ // when directly updating the scrollbars afterwards.
+ // processing the event stack manually solves this.
qApp->processEvents();
- #endif
+
m_sv->set_hscrollbar_value(int(scenePos().x()) - (int)(0.5 *
vpWidth));
return;
}
@@ -225,9 +229,12 @@
}
if (m_sv->hscrollbar_value() != newXPos) {
- #if defined (Q_WS_MAC)
+ // For some reason on some systems the event of
+ // setting the new position doesn't result in
+ // updating the area of the old cursor position
+ // when directly updating the scrollbars afterwards.
+ // processing the event stack manually solves this.
qApp->processEvents();
- #endif
m_sv->set_hscrollbar_value(newXPos);
}
}
- [Traverso-commit] traverso/src/sheetcanvas Cursors.cpp, Nicola Doebelin, 2009/03/06
- [Traverso-commit] traverso/src/sheetcanvas Cursors.cpp, Nicola Doebelin, 2009/03/06
- [Traverso-commit] traverso/src/sheetcanvas Cursors.cpp, Remon Sijrier, 2009/03/06
- [Traverso-commit] traverso/src/sheetcanvas Cursors.cpp, Remon Sijrier, 2009/03/07
- [Traverso-commit] traverso/src/sheetcanvas Cursors.cpp, Remon Sijrier, 2009/03/07
- [Traverso-commit] traverso/src/sheetcanvas Cursors.cpp,
Remon Sijrier <=
- [Traverso-commit] traverso/src/sheetcanvas Cursors.cpp, Remon Sijrier, 2009/03/22