Merge branch 'merge-timeline-and-viewer'

This commit is contained in:
itsmattkc
2020-01-04 02:45:26 +11:00
22 changed files with 194 additions and 368 deletions
+5
View File
@@ -339,6 +339,11 @@ void TimeRuler::DrawPlayhead(QPainter *p, int x, int y)
p->drawPolygon(points, 6);
}
int TimeRuler::CacheStatusHeight() const
{
return fontMetrics().height() / 4;
}
double TimeRuler::ScreenToUnitFloat(int screen)
{
return (screen + scroll_) / scale_ / timebase_dbl_;
+2
View File
@@ -71,6 +71,8 @@ private:
void DrawPlayhead(QPainter* p, int x, int y);
int CacheStatusHeight() const;
double ScreenToUnitFloat(int screen);
int64_t ScreenToUnit(int screen);