paramview: update keyframe positions on show
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user