projectpanel: select nodes when items are selected in the project explorer
This commit is contained in:
@@ -475,6 +475,15 @@ void MainWindow::TimelinePanelSelectionChanged(const QVector<Block *> &blocks)
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::ProjectPanelSelectionChanged(const QVector<Node *> &nodes)
|
||||
{
|
||||
ProjectPanel *panel = static_cast<ProjectPanel *>(sender());
|
||||
|
||||
if (PanelManager::instance()->CurrentlyFocused(false) == panel) {
|
||||
node_panel_->Select(nodes);
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef Q_OS_LINUX
|
||||
void MainWindow::ShowNouveauWarning()
|
||||
{
|
||||
@@ -564,6 +573,7 @@ ProjectPanel *MainWindow::AppendProjectPanel()
|
||||
|
||||
connect(panel, &PanelWidget::CloseRequested, this, &MainWindow::ProjectCloseRequested);
|
||||
connect(panel, &ProjectPanel::ProjectNameChanged, this, &MainWindow::UpdateTitle);
|
||||
connect(panel, &ProjectPanel::SelectionChanged, this, &MainWindow::ProjectPanelSelectionChanged);
|
||||
|
||||
return panel;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user