paramview: update keyframe positions on show

This commit is contained in:
itsmattkc
2022-01-22 20:22:02 -08:00
parent 6aa493bd67
commit 8f440569f8
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -30,6 +30,7 @@ ParamPanel::ParamPanel(QWidget* parent) :
NodeParamView* view = new NodeParamView();
connect(view, &NodeParamView::RequestSelectNode, this, &ParamPanel::RequestSelectNode);
connect(view, &NodeParamView::FocusedNodeChanged, this, &ParamPanel::FocusedNodeChanged);
connect(this, &ParamPanel::visibilityChanged, view, &NodeParamView::UpdateElementY);
SetTimeBasedWidget(view);
Retranslate();
+2 -2
View File
@@ -89,6 +89,8 @@ public slots:
void SetContexts(const QVector<Node*> &contexts);
void UpdateElementY();
signals:
void RequestSelectNode(const QVector<Node*>& target);
@@ -153,8 +155,6 @@ private slots:
void KeyframeViewDragged(int x, int y);
void UpdateElementY();
void NodeAddedToContext(Node *n);
};