From 46e2c45e2ea7e9e3c9293d5d5935ed628fa7b7cc Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Mon, 4 Mar 2024 17:10:11 -0600 Subject: [PATCH] Sketcher: Translate QWidgetAction items Explicitly set the context used by tr() to fix missing context without it. --- src/Mod/Sketcher/Gui/Command.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Mod/Sketcher/Gui/Command.cpp b/src/Mod/Sketcher/Gui/Command.cpp index 868ec802e6..817436f0af 100644 --- a/src/Mod/Sketcher/Gui/Command.cpp +++ b/src/Mod/Sketcher/Gui/Command.cpp @@ -1078,6 +1078,7 @@ bool CmdSketcherViewSection::isActive() /* Grid tool */ class GridSpaceAction: public QWidgetAction { + Q_DECLARE_TR_FUNCTIONS(GridSpaceAction) public: GridSpaceAction(QObject* parent) : QWidgetAction(parent) @@ -1315,6 +1316,7 @@ bool CmdSketcherGrid::isActive() /* Snap tool */ class SnapSpaceAction: public QWidgetAction { + Q_DECLARE_TR_FUNCTIONS(SnapSpaceAction) public: SnapSpaceAction(QObject* parent) : QWidgetAction(parent) @@ -1583,6 +1585,7 @@ bool CmdSketcherSnap::isActive() /* Rendering Order */ class RenderingOrderAction: public QWidgetAction { + Q_DECLARE_TR_FUNCTIONS(RenderingOrderAction) public: RenderingOrderAction(QObject* parent) : QWidgetAction(parent)