connect timeline and viewer together by default
This commit is contained in:
@@ -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 ×tamp)
|
||||
{
|
||||
ruler_->SetTime(timestamp);
|
||||
view_->SetTime(timestamp);
|
||||
}
|
||||
|
||||
TimelineView *TimelinePanel::view()
|
||||
{
|
||||
return view_;
|
||||
|
||||
Reference in New Issue
Block a user