[bos #29467] [EDF] (2022-T1) Logging of SALOME usage: specific log in SALOME

This commit is contained in:
vsr 2022-05-27 12:51:41 +03:00 committed by Pascal Obry
parent d2ccc47fec
commit 221a1f9cef
2 changed files with 3 additions and 0 deletions

View File

@ -943,6 +943,7 @@ bool GEOMBase_Helper::onAccept( const bool publish, const bool useTransaction, b
} }
if ( nbObjs ) { if ( nbObjs ) {
SalomeApp_Application::logUserEvent( QString( "Geometry") + ": " + QObject::tr( "OPERATION_APPLIED" ) );
commitCommand(); commitCommand();
updateObjBrowser(); updateObjBrowser();
if( SUIT_Application* anApp = SUIT_Session::session()->activeApplication() ) { if( SUIT_Application* anApp = SUIT_Session::session()->activeApplication() ) {

View File

@ -980,6 +980,8 @@ void GeometryGUI::initialize( CAM_Application* app )
{ {
SalomeApp_Module::initialize( app ); SalomeApp_Module::initialize( app );
setActionLoggingEnabled( true ); // enable action logging
// ----- create actions -------------- // ----- create actions --------------
createGeomAction( GEOMOp::OpDelete, "DELETE", "", Qt::Key_Delete ); createGeomAction( GEOMOp::OpDelete, "DELETE", "", Qt::Key_Delete );