nodeview: do something when clips are selected
This commit is contained in:
@@ -106,11 +106,11 @@ public slots:
|
||||
node_view_->SelectWithDependencies(nodes);
|
||||
}
|
||||
|
||||
void SelectBlocks(const QVector<Block*>& nodes)
|
||||
void SelectBlocks(const QVector<Block*>& blocks)
|
||||
{
|
||||
Q_UNUSED(nodes)
|
||||
qDebug() << "Stub";
|
||||
//node_view_->SelectBlocks(nodes);
|
||||
QVector<Node*> nodes(blocks.size());
|
||||
memcpy(nodes.data(), blocks.constData(), blocks.size() * sizeof(Block*));
|
||||
node_view_->SelectWithDependencies(nodes);
|
||||
}
|
||||
|
||||
void DeselectBlocks(const QVector<Block*>& nodes)
|
||||
|
||||
@@ -236,6 +236,9 @@ void NodeView::Select(QVector<Node *> nodes)
|
||||
}
|
||||
}
|
||||
|
||||
// Center on something
|
||||
centerOn(scene_.NodeToUIObject(nodes.first()));
|
||||
|
||||
ConnectSelectionChangedSignal();
|
||||
|
||||
// Emit deselect signal for any nodes that weren't in the list
|
||||
|
||||
Reference in New Issue
Block a user