From 41133faadec2deef6dec0ea995ce15ca0f37e33b Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Fri, 6 Mar 2020 08:39:19 +0100 Subject: [PATCH] FEM: rename icon, Constraint Plane Rotation --- src/Mod/Fem/Gui/Command.cpp | 2 +- src/Mod/Fem/Gui/Resources/Fem.qrc | 2 +- ...traint-planerotation.svg => FEM_ConstraintPlaneRotation.svg} | 0 src/Mod/Fem/Gui/TaskFemConstraintPlaneRotation.cpp | 2 +- src/Mod/Fem/Gui/ViewProviderFemConstraintPlaneRotation.cpp | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename src/Mod/Fem/Gui/Resources/icons/{fem-constraint-planerotation.svg => FEM_ConstraintPlaneRotation.svg} (100%) diff --git a/src/Mod/Fem/Gui/Command.cpp b/src/Mod/Fem/Gui/Command.cpp index b8fb87bb11..929b21a9bd 100644 --- a/src/Mod/Fem/Gui/Command.cpp +++ b/src/Mod/Fem/Gui/Command.cpp @@ -684,7 +684,7 @@ CmdFemConstraintPlaneRotation::CmdFemConstraintPlaneRotation() sToolTipText = QT_TR_NOOP("Creates a FEM constraint for plane rotation face"); sWhatsThis = "FEM_ConstraintPlaneRotation"; sStatusTip = sToolTipText; - sPixmap = "fem-constraint-planerotation"; + sPixmap = "FEM_ConstraintPlaneRotation"; } void CmdFemConstraintPlaneRotation::activated(int) diff --git a/src/Mod/Fem/Gui/Resources/Fem.qrc b/src/Mod/Fem/Gui/Resources/Fem.qrc index b6606c6e15..13d9de1e8d 100755 --- a/src/Mod/Fem/Gui/Resources/Fem.qrc +++ b/src/Mod/Fem/Gui/Resources/Fem.qrc @@ -20,7 +20,7 @@ icons/FEM_ConstraintHeatflux.svg icons/FEM_ConstraintInitialFlowVelocity.svg icons/FEM_ConstraintInitialTemperature.svg - icons/fem-constraint-planerotation.svg + icons/FEM_ConstraintPlaneRotation.svg icons/fem-constraint-pressure.svg icons/fem-constraint-pulley.svg icons/fem-constraint-selfweight.svg diff --git a/src/Mod/Fem/Gui/Resources/icons/fem-constraint-planerotation.svg b/src/Mod/Fem/Gui/Resources/icons/FEM_ConstraintPlaneRotation.svg similarity index 100% rename from src/Mod/Fem/Gui/Resources/icons/fem-constraint-planerotation.svg rename to src/Mod/Fem/Gui/Resources/icons/FEM_ConstraintPlaneRotation.svg diff --git a/src/Mod/Fem/Gui/TaskFemConstraintPlaneRotation.cpp b/src/Mod/Fem/Gui/TaskFemConstraintPlaneRotation.cpp index 9673b23f4d..a24600f395 100644 --- a/src/Mod/Fem/Gui/TaskFemConstraintPlaneRotation.cpp +++ b/src/Mod/Fem/Gui/TaskFemConstraintPlaneRotation.cpp @@ -70,7 +70,7 @@ using namespace Gui; /* TRANSLATOR FemGui::TaskFemConstraintPlaneRotation */ TaskFemConstraintPlaneRotation::TaskFemConstraintPlaneRotation(ViewProviderFemConstraintPlaneRotation *ConstraintView,QWidget *parent) - : TaskFemConstraint(ConstraintView, parent, "fem-constraint-planerotation") + : TaskFemConstraint(ConstraintView, parent, "FEM_ConstraintPlaneRotation") { //Note change "planerotation" in line above to new constraint name proxy = new QWidget(this); ui = new Ui_TaskFemConstraintPlaneRotation(); diff --git a/src/Mod/Fem/Gui/ViewProviderFemConstraintPlaneRotation.cpp b/src/Mod/Fem/Gui/ViewProviderFemConstraintPlaneRotation.cpp index 06b2902a68..e98a78c90d 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemConstraintPlaneRotation.cpp +++ b/src/Mod/Fem/Gui/ViewProviderFemConstraintPlaneRotation.cpp @@ -55,7 +55,7 @@ PROPERTY_SOURCE(FemGui::ViewProviderFemConstraintPlaneRotation, FemGui::ViewProv ViewProviderFemConstraintPlaneRotation::ViewProviderFemConstraintPlaneRotation() { - sPixmap = "fem-constraint-planerotation"; + sPixmap = "FEM_ConstraintPlaneRotation"; //Note change "planerotation" in line above to new constraint name, make sure it is the same as in taskFem* cpp file ADD_PROPERTY(FaceColor,(0.2f,0.3f,0.2f)); }