FEM: ConstraintPressure: Arrow direction bug fix

This commit is contained in:
kgoao 2016-10-06 13:06:16 +02:00 committed by Yorik van Havre
parent 5936a2db82
commit 14b45107ce
2 changed files with 10 additions and 0 deletions

View File

@ -72,6 +72,9 @@ TaskFemConstraintPressure::TaskFemConstraintPressure(ViewProviderFemConstraintPr
connect(ui->lw_references, SIGNAL(currentItemChanged(QListWidgetItem*,QListWidgetItem*)),
this, SLOT(setSelection(QListWidgetItem*)));
connect(ui->checkBoxReverse, SIGNAL(toggled(bool)),
this, SLOT(onCheckReverse(bool)));
this->groupLayout()->addWidget(proxy);
/* Note: */
@ -119,6 +122,12 @@ void TaskFemConstraintPressure::updateUI()
}
}
void TaskFemConstraintPressure::onCheckReverse(const bool pressed)
{
Fem::ConstraintPressure* pcConstraint = static_cast<Fem::ConstraintPressure*>(ConstraintView->getObject());
pcConstraint->Reversed.setValue(pressed);
}
void TaskFemConstraintPressure::addToSelection()
{
std::vector<Gui::SelectionObject> selection = Gui::Selection().getSelectionEx(); //gets vector of selected objects of active document

View File

@ -57,6 +57,7 @@ public:
private Q_SLOTS:
void onReferenceDeleted(void);
void onCheckReverse(bool);
void addToSelection();
void removeFromSelection();
void setSelection(QListWidgetItem* item);