Fem: Use lower camel case in TaskFemConstraintPressure methods

This commit is contained in:
marioalexis
2023-10-03 02:37:48 -03:00
parent e932134c1f
commit ef0865ebaa
2 changed files with 6 additions and 6 deletions

View File

@@ -251,12 +251,12 @@ const std::string TaskFemConstraintPressure::getReferences() const
return TaskFemConstraint::getReferences(items);
}
std::string TaskFemConstraintPressure::get_Pressure() const
std::string TaskFemConstraintPressure::getPressure() const
{
return ui->if_pressure->value().getSafeUserString().toStdString();
}
bool TaskFemConstraintPressure::get_Reverse() const
bool TaskFemConstraintPressure::getReverse() const
{
return ui->checkBoxReverse->isChecked();
}
@@ -321,11 +321,11 @@ bool TaskDlgFemConstraintPressure::accept()
Gui::Command::doCommand(Gui::Command::Doc,
"App.ActiveDocument.%s.Pressure = \"%s\"",
name.c_str(),
parameterPressure->get_Pressure().c_str());
parameterPressure->getPressure().c_str());
Gui::Command::doCommand(Gui::Command::Doc,
"App.ActiveDocument.%s.Reversed = %s",
name.c_str(),
parameterPressure->get_Reverse() ? "True" : "False");
parameterPressure->getReverse() ? "True" : "False");
std::string scale = parameterPressure->getScale(); // OvG: determine modified scale
Gui::Command::doCommand(Gui::Command::Doc,
"App.ActiveDocument.%s.Scale = %s",

View File

@@ -46,8 +46,8 @@ public:
QWidget* parent = nullptr);
~TaskFemConstraintPressure() override;
const std::string getReferences() const override;
std::string get_Pressure() const;
bool get_Reverse() const;
std::string getPressure() const;
bool getReverse() const;
private Q_SLOTS:
void onReferenceDeleted();