connect timeline and viewer together by default
This commit is contained in:
@@ -28,7 +28,7 @@ ViewerPanel::ViewerPanel(QWidget *parent) :
|
||||
|
||||
// QObject system handles deleting this
|
||||
viewer_ = new ViewerWidget(this);
|
||||
connect(viewer_, SIGNAL(TimeChanged(const rational&)), this, SIGNAL(TimeChanged(const rational&)));
|
||||
connect(viewer_, SIGNAL(TimeChanged(const int64_t&)), this, SIGNAL(TimeChanged(const int64_t&)));
|
||||
|
||||
// Set ViewerWidget as the central widget
|
||||
setWidget(viewer_);
|
||||
@@ -107,6 +107,11 @@ rational ViewerPanel::GetTime()
|
||||
return viewer_->GetTime();
|
||||
}
|
||||
|
||||
void ViewerPanel::SetTime(const int64_t ×tamp)
|
||||
{
|
||||
viewer_->SetTime(timestamp);
|
||||
}
|
||||
|
||||
void ViewerPanel::SetTexture(RenderTexturePtr tex)
|
||||
{
|
||||
viewer_->SetTexture(tex);
|
||||
|
||||
Reference in New Issue
Block a user