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
+6 -1
View File
@@ -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 &timestamp)
{
viewer_->SetTime(timestamp);
}
void ViewerPanel::SetTexture(RenderTexturePtr tex)
{
viewer_->SetTexture(tex);