// ****************************************************************************************** // Called from Double List widget to highlight a group // ****************************************************************************************** void ROSControllersWidget::previewSelectedGroup(std::vector<std::string> groups) { // Unhighlight all links Q_EMIT unhighlightAll(); for (const std::string& group : groups) { // Highlight group Q_EMIT highlightGroup(group); } }
// ****************************************************************************************** // Preview whatever element is selected // ****************************************************************************************** void EndEffectorsWidget::previewClicked( int row, int column ) { // Get list of all selected items QList<QTableWidgetItem*> selected = data_table_->selectedItems(); // Check that an element was selected if( !selected.size() ) return; // Find the selected in datastructure srdf::Model::EndEffector *effector = findEffectorByName( selected[0]->text().toStdString() ); // Unhighlight all links Q_EMIT unhighlightAll(); // Highlight group Q_EMIT highlightGroup( effector->component_group_ ); }