Skip to content

Commit

Permalink
[FEM] highlight also selected transformable surfaces
Browse files Browse the repository at this point in the history
this makes it much easier to find the surfaces that are transformable
  • Loading branch information
donovaly authored and berndhahnebach committed Feb 26, 2020
1 parent c1e7bb3 commit e2d2101
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Mod/Fem/Gui/TaskFemConstraintTransform.cpp
Expand Up @@ -76,10 +76,15 @@ TaskFemConstraintTransform::TaskFemConstraintTransform(ViewProviderFemConstraint
createDeleteAction(ui->lw_Rect);
deleteAction->connect(deleteAction, SIGNAL(triggered()), this, SLOT(onReferenceDeleted()));

// highlight seletcted list items in the model
connect(ui->lw_Rect, SIGNAL(currentItemChanged(QListWidgetItem*,QListWidgetItem*)),
this, SLOT(setSelection(QListWidgetItem*)));
connect(ui->lw_Rect, SIGNAL(itemClicked(QListWidgetItem*)),
this, SLOT(setSelection(QListWidgetItem*)));
connect(ui->lw_displobj_rect, SIGNAL(currentItemChanged(QListWidgetItem*, QListWidgetItem*)),
this, SLOT(setSelection(QListWidgetItem*)));
connect(ui->lw_displobj_rect, SIGNAL(itemClicked(QListWidgetItem*)),
this, SLOT(setSelection(QListWidgetItem*)));

this->groupLayout()->addWidget(proxy);

Expand Down

0 comments on commit e2d2101

Please sign in to comment.