FEM: ConstraintPressure: Arrow direction bug fix
This commit is contained in:
parent
5936a2db82
commit
14b45107ce
|
@ -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
|
||||
|
|
|
@ -57,6 +57,7 @@ public:
|
|||
private Q_SLOTS:
|
||||
void onReferenceDeleted(void);
|
||||
|
||||
void onCheckReverse(bool);
|
||||
void addToSelection();
|
||||
void removeFromSelection();
|
||||
void setSelection(QListWidgetItem* item);
|
||||
|
|
Loading…
Reference in New Issue
Block a user