updated ParamPanel to be able to be connected with ViewerPanel and TimelinePanel

This commit is contained in:
itsmattkc
2019-12-27 02:41:31 +11:00
parent e32376a8b7
commit 227db9d653
7 changed files with 70 additions and 33 deletions
+6
View File
@@ -27,6 +27,7 @@ ParamPanel::ParamPanel(QWidget* parent) :
setObjectName("ParamPanel");
view_ = new NodeParamView(this);
connect(view_, &NodeParamView::TimeChanged, this, &ParamPanel::TimeChanged);
setWidget(view_);
@@ -50,6 +51,11 @@ void ParamPanel::SetNodes(QList<Node *> nodes)
Retranslate();
}
void ParamPanel::SetTime(const int64_t &timestamp)
{
view_->SetTime(timestamp);
}
void ParamPanel::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange) {