diff --git a/src/Mod/Sketcher/Gui/Command.cpp b/src/Mod/Sketcher/Gui/Command.cpp index f81a5a6c66..c3514f5646 100644 --- a/src/Mod/Sketcher/Gui/Command.cpp +++ b/src/Mod/Sketcher/Gui/Command.cpp @@ -1494,8 +1494,6 @@ protected: Gui::Action* createAction() override; private: - void updateIcon(bool value); - ParameterGrp::handle getParameterPath() { return App::GetApplication().GetParameterGroupByPath( @@ -1537,24 +1535,12 @@ void CmdSketcherSnap::OnChange(Base::Subject& rCaller, const char* } } -void CmdSketcherSnap::updateIcon(bool value) -{ - static QIcon active = Gui::BitmapFactory().iconFromTheme("Sketcher_Snap"); - static QIcon inactive = Gui::BitmapFactory().iconFromTheme("Sketcher_Snap_Deactivated"); - - auto* pcAction = qobject_cast(getAction()); - pcAction->setIcon(value ? active : inactive); -} - void CmdSketcherSnap::activated(int iMsg) { Q_UNUSED(iMsg); getParameterPath()->SetBool("Snap", !snapEnabled); - // snapEnable updated via observer - updateIcon(snapEnabled); - // Update the widget : if (!_pcAction) return; @@ -1583,9 +1569,6 @@ Gui::Action* CmdSketcherSnap::createAction() ssa->updateWidget(snapEnabled); }); - // set the right pixmap - updateIcon(snapEnabled); - return pcAction; } @@ -1608,8 +1591,6 @@ bool CmdSketcherSnap::isActive() auto* vp = getInactiveHandlerEditModeSketchViewProvider(); if (vp) { - updateIcon(snapEnabled); - return true; } diff --git a/src/Mod/Sketcher/Gui/Resources/Sketcher.qrc b/src/Mod/Sketcher/Gui/Resources/Sketcher.qrc index bf0f2c8f6b..b1254dad88 100644 --- a/src/Mod/Sketcher/Gui/Resources/Sketcher.qrc +++ b/src/Mod/Sketcher/Gui/Resources/Sketcher.qrc @@ -113,8 +113,6 @@ icons/general/Sketcher_RenderingOrder_Construction.svg icons/general/Sketcher_RenderingOrder_External.svg icons/general/Sketcher_RenderingOrder_Normal.svg - icons/general/Sketcher_Snap.svg - icons/general/Sketcher_Snap_Deactivated.svg icons/geometry/Sketcher_AlterFillet.svg diff --git a/src/Mod/Sketcher/Gui/Resources/icons/general/Sketcher_Snap.svg b/src/Mod/Sketcher/Gui/Resources/icons/general/Sketcher_Snap.svg deleted file mode 100644 index d836b8809b..0000000000 --- a/src/Mod/Sketcher/Gui/Resources/icons/general/Sketcher_Snap.svg +++ /dev/null @@ -1,386 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - [wmayer] - - - 2011-10-10 - https://www.freecad.org/wiki/index.php?title=Artwork - - - FreeCAD - - - FreeCAD/src/Mod/Part/Gui/Resources/icons/Part_Section.svg - - - FreeCAD LGPL2+ - - - https://www.gnu.org/copyleft/lesser.html - - - [agryson] Alexander Gryson - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/Mod/Sketcher/Gui/Resources/icons/general/Sketcher_Snap_Deactivated.svg b/src/Mod/Sketcher/Gui/Resources/icons/general/Sketcher_Snap_Deactivated.svg deleted file mode 100644 index a83956f97b..0000000000 --- a/src/Mod/Sketcher/Gui/Resources/icons/general/Sketcher_Snap_Deactivated.svg +++ /dev/null @@ -1,377 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - [wmayer] - - - 2011-10-10 - https://www.freecad.org/wiki/index.php?title=Artwork - - - FreeCAD - - - FreeCAD/src/Mod/Part/Gui/Resources/icons/Part_Section.svg - - - FreeCAD LGPL2+ - - - https://www.gnu.org/copyleft/lesser.html - - - [agryson] Alexander Gryson - - - - - - - - - - - - - - - - - - - - - - - - - - - - -