From 202d160f9d25403a421cb4db5d7e2a848e81a274 Mon Sep 17 00:00:00 2001 From: tarman3 Date: Tue, 13 May 2025 20:54:23 +0300 Subject: [PATCH] CAM: Simulator - Reset camera tooltip --- src/Mod/CAM/PathSimulator/AppGL/GuiDisplay.cpp | 2 ++ src/Mod/CAM/PathSimulator/AppGL/GuiDisplay.h | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Mod/CAM/PathSimulator/AppGL/GuiDisplay.cpp b/src/Mod/CAM/PathSimulator/AppGL/GuiDisplay.cpp index 036ce11e23..1bdd249010 100644 --- a/src/Mod/CAM/PathSimulator/AppGL/GuiDisplay.cpp +++ b/src/Mod/CAM/PathSimulator/AppGL/GuiDisplay.cpp @@ -286,6 +286,8 @@ void MillSim::GuiDisplay::SetupTooltips() guiItems[eGuiItemView].toolTip = QCoreApplication::translate("CAM:Simulator:Tooltips", "Toggle view simulation/model", nullptr); + guiItems[eGuiItemHome].toolTip = + QCoreApplication::translate("CAM:Simulator:Tooltips", "Reset camera", nullptr); } void GuiDisplay::MouseCursorPos(int x, int y) diff --git a/src/Mod/CAM/PathSimulator/AppGL/GuiDisplay.h b/src/Mod/CAM/PathSimulator/AppGL/GuiDisplay.h index bb14528604..02a2494ef5 100644 --- a/src/Mod/CAM/PathSimulator/AppGL/GuiDisplay.h +++ b/src/Mod/CAM/PathSimulator/AppGL/GuiDisplay.h @@ -52,8 +52,8 @@ enum eGuiItems eGuiItemPath, eGuiItemAmbientOclusion, eGuiItemView, - eGuiItemMax, - eGuiItemHome + eGuiItemHome, + eGuiItemMax // this element must be the last item always }; struct GuiItem