added support for multiple timeline sections

This commit is contained in:
itsmattkc
2019-10-05 04:38:17 +10:00
parent bba229b5b2
commit ea4f6f43c4
15 changed files with 543 additions and 251 deletions
@@ -52,7 +52,7 @@ void TimelineViewPlayheadItem::UpdateRect()
double x = TimeToScreenCoord(rational(playhead_ * timebase_.numerator(), timebase_.denominator()));
double width = TimeToScreenCoord(timebase_);
setRect(0, 0, width, scene()->height()-1);
setRect(0, 0, width, height_);
setPos(x, 0);
}