From: jfa Date: Mon, 30 May 2022 13:57:12 +0000 (+0300) Subject: Log desktop actions X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9614b41841163f572f116ff65760f45b4e9a5021;p=modules%2Fshaper.git Log desktop actions --- diff --git a/src/SHAPERGUI/SHAPERGUI.cpp b/src/SHAPERGUI/SHAPERGUI.cpp index 64b24b8ce..50491c4df 100644 --- a/src/SHAPERGUI/SHAPERGUI.cpp +++ b/src/SHAPERGUI/SHAPERGUI.cpp @@ -790,6 +790,8 @@ QAction* SHAPERGUI::addFeatureOfNested(const QString& theWBName, createTool(separator(), aWBTool); /// nested action is always separated of others registerCommandToolbar(theWBName, -1); + connect(anAction, SIGNAL(triggered(bool)), this, SLOT(logShaperGUIEvent())); + return anAction; } @@ -818,6 +820,9 @@ QAction* SHAPERGUI::addDesktopCommand(const QString& theId, const QString& theTi aAction->setStatusTip(theTip); aAction->setData(theId); createMenu(aId, aMenu, theMenuPosition); + + connect(aAction, SIGNAL(triggered(bool)), this, SLOT(logShaperGUIEvent())); + return aAction; }