Sketcher: Translate QWidgetAction items

Explicitly set the context used by tr() to fix missing context without it.
This commit is contained in:
Chris Hennes
2024-03-04 17:10:11 -06:00
committed by Yorik van Havre
parent 93d58802aa
commit 46e2c45e2e

View File

@@ -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)