From ef0865ebaa21f3c613fc3ccc0be6cabb89656746 Mon Sep 17 00:00:00 2001 From: marioalexis Date: Tue, 3 Oct 2023 02:37:48 -0300 Subject: [PATCH] Fem: Use lower camel case in TaskFemConstraintPressure methods --- src/Mod/Fem/Gui/TaskFemConstraintPressure.cpp | 8 ++++---- src/Mod/Fem/Gui/TaskFemConstraintPressure.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Mod/Fem/Gui/TaskFemConstraintPressure.cpp b/src/Mod/Fem/Gui/TaskFemConstraintPressure.cpp index 39e73aa5a6..7cfe607d7f 100644 --- a/src/Mod/Fem/Gui/TaskFemConstraintPressure.cpp +++ b/src/Mod/Fem/Gui/TaskFemConstraintPressure.cpp @@ -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", diff --git a/src/Mod/Fem/Gui/TaskFemConstraintPressure.h b/src/Mod/Fem/Gui/TaskFemConstraintPressure.h index a1efc14a0b..c312290534 100644 --- a/src/Mod/Fem/Gui/TaskFemConstraintPressure.h +++ b/src/Mod/Fem/Gui/TaskFemConstraintPressure.h @@ -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();