connect timeline and viewer together by default

This commit is contained in:
itsmattkc
2019-09-27 23:55:24 +10:00
parent 150afb6ebc
commit 4c90405feb
14 changed files with 734 additions and 37 deletions
+8
View File
@@ -47,6 +47,8 @@ TimelinePanel::TimelinePanel(QWidget *parent) :
connect(view_, SIGNAL(TimebaseChanged(const rational&)), this, SLOT(SetTimebase(const rational&)));
connect(ruler_, SIGNAL(TimeChanged(const int64_t&)), view_, SLOT(SetTime(const int64_t&)));
connect(view_, SIGNAL(TimeChanged(const int64_t&)), ruler_, SLOT(SetTime(const int64_t&)));
connect(view_, SIGNAL(TimeChanged(const int64_t&)), this, SIGNAL(TimeChanged(const int64_t&)));
connect(ruler_, SIGNAL(TimeChanged(const int64_t&)), this, SIGNAL(TimeChanged(const int64_t&)));
// FIXME: Magic number
SetScale(90.0);
@@ -67,6 +69,12 @@ void TimelinePanel::SetTimebase(const rational &timebase)
view_->SetTimebase(timebase);
}
void TimelinePanel::SetTime(const int64_t &timestamp)
{
ruler_->SetTime(timestamp);
view_->SetTime(timestamp);
}
TimelineView *TimelinePanel::view()
{
return view_;