Salome HOME
Facilate action processing with ModuleBase_ActionInfo
[modules/shaper.git] / src / NewGeom / NewGeom_Module.cpp
index 9f5c22ceb3d5a3936828d8024844e96662265081..50279350e19f198496233c71ed9cde0bcdc72db3 100644 (file)
@@ -325,6 +325,17 @@ QAction* NewGeom_Module::addFeature(const QString& theWBName, const QString& the
   return aAction;
 }
 
+QAction* NewGeom_Module::addFeature(const QString& theWBName, const ActionInfo& theInfo)
+{
+  return addFeature(theWBName,
+                    theInfo.id,
+                    theInfo.text,
+                    theInfo.toolTip,
+                    theInfo.icon,
+                    theInfo.shortcut);
+}
+
+
 //******************************************************
 QAction* NewGeom_Module::addDesktopCommand(const QString& theId, const QString& theTitle,
                                            const QString& theTip, const QIcon& theIcon,