[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Traverso-commit] traverso/src/sheetcanvas AudioClipView.cpp Curs...
From: |
Remon Sijrier |
Subject: |
[Traverso-commit] traverso/src/sheetcanvas AudioClipView.cpp Curs... |
Date: |
Sun, 22 Mar 2009 20:24:44 +0000 |
CVSROOT: /sources/traverso
Module name: traverso
Changes by: Remon Sijrier <r_sijrier> 09/03/22 20:24:44
Modified files:
src/sheetcanvas: AudioClipView.cpp Cursors.cpp
Log message:
* fix flashing of text/playhead, please test!!
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/sheetcanvas/AudioClipView.cpp?cvsroot=traverso&r1=1.25&r2=1.26
http://cvs.savannah.gnu.org/viewcvs/traverso/src/sheetcanvas/Cursors.cpp?cvsroot=traverso&r1=1.15&r2=1.16
Patches:
Index: AudioClipView.cpp
===================================================================
RCS file: /sources/traverso/traverso/src/sheetcanvas/AudioClipView.cpp,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -b -r1.25 -r1.26
--- AudioClipView.cpp 14 Mar 2009 22:04:58 -0000 1.25
+++ AudioClipView.cpp 22 Mar 2009 20:24:44 -0000 1.26
@@ -522,8 +522,10 @@
// fill info area bg
p->fillRect(xstart, 1, pixelcount, m_infoAreaHeight,
themer()->get_color("AudioClip:clipinfobackground:inactive"));
if (m_height >= m_mimimumheightforinfoarea) {
+ if (xstart < (7 + m_clipInfo.width())) {
p->drawPixmap(7, 1, m_clipInfo);
}
+ }
}
Index: Cursors.cpp
===================================================================
RCS file: /sources/traverso/traverso/src/sheetcanvas/Cursors.cpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- Cursors.cpp 15 Mar 2009 21:09:00 -0000 1.15
+++ Cursors.cpp 22 Mar 2009 20:24:44 -0000 1.16
@@ -162,14 +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) ) {
+ m_sv->set_hscrollbar_value(int(scenePos().x()) - (int)(0.5 *
vpWidth));
// 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();
-
- m_sv->set_hscrollbar_value(int(scenePos().x()) - (int)(0.5 *
vpWidth));
return;
}
@@ -229,13 +228,13 @@
}
if (m_sv->hscrollbar_value() != newXPos) {
+ m_sv->set_hscrollbar_value(newXPos);
// 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();
- m_sv->set_hscrollbar_value(newXPos);
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Traverso-commit] traverso/src/sheetcanvas AudioClipView.cpp Curs...,
Remon Sijrier <=