finished merge of viewer and footage
This commit is contained in:
@@ -39,7 +39,7 @@ NodeParamViewArrayWidget::NodeParamViewArrayWidget(Node *node, const QString &in
|
||||
|
||||
connect(node_, &Node::InputArraySizeChanged, this, &NodeParamViewArrayWidget::UpdateCounter);
|
||||
|
||||
UpdateCounter(input_, node_->InputArraySize(input_));
|
||||
UpdateCounter(input_, 0, node_->InputArraySize(input_));
|
||||
}
|
||||
|
||||
void NodeParamViewArrayWidget::mouseDoubleClickEvent(QMouseEvent *event)
|
||||
@@ -49,8 +49,9 @@ void NodeParamViewArrayWidget::mouseDoubleClickEvent(QMouseEvent *event)
|
||||
emit DoubleClicked();
|
||||
}
|
||||
|
||||
void NodeParamViewArrayWidget::UpdateCounter(const QString& input, int new_size)
|
||||
void NodeParamViewArrayWidget::UpdateCounter(const QString& input, int old_size, int new_size)
|
||||
{
|
||||
Q_UNUSED(old_size)
|
||||
if (input == input_) {
|
||||
count_lbl_->setText(tr("%1 element(s)").arg(new_size));
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@ private:
|
||||
QLabel* count_lbl_;
|
||||
|
||||
private slots:
|
||||
void UpdateCounter(const QString &input, int new_size);
|
||||
void UpdateCounter(const QString &input, int old_size, int new_size);
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -418,8 +418,10 @@ void NodeParamViewItemBody::ArrayCollapseBtnPressed(bool checked)
|
||||
emit ArrayExpandedChanged(checked);
|
||||
}
|
||||
|
||||
void NodeParamViewItemBody::InputArraySizeChanged(const QString& input, int size)
|
||||
void NodeParamViewItemBody::InputArraySizeChanged(const QString& input, int old_sz, int size)
|
||||
{
|
||||
Q_UNUSED(old_sz)
|
||||
|
||||
Node* node = static_cast<Node*>(sender());
|
||||
|
||||
ArrayUI& array_ui = array_ui_[{node, input}];
|
||||
|
||||
@@ -137,7 +137,7 @@ private slots:
|
||||
|
||||
void ArrayCollapseBtnPressed(bool checked);
|
||||
|
||||
void InputArraySizeChanged(const QString &input, int size);
|
||||
void InputArraySizeChanged(const QString &input, int old_sz, int size);
|
||||
|
||||
void ArrayAppendClicked();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user