X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSUIT%2FSUIT_Application.cxx;h=e02b782c4aac6899256613e4755a61f715055781;hb=8091ffdec0e55752a16ec4d46ac1b944fc1e1ddf;hp=06d9180ed8138cd4a388437a8f8014578d1d4de2;hpb=7e5424a12a7f6894a5b9a029fd8251f2cb5780b8;p=modules%2Fgui.git diff --git a/src/SUIT/SUIT_Application.cxx b/src/SUIT/SUIT_Application.cxx index 06d9180ed..e02b782c4 100644 --- a/src/SUIT/SUIT_Application.cxx +++ b/src/SUIT/SUIT_Application.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2021 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -399,6 +399,16 @@ int SUIT_Application::createTool( const int id, const QString& tBar, const int i return intId != -1 ? id : -1; } +/*! + Clears given toolbar. + \param title - title of toolbar +*/ +void SUIT_Application::clearTool( const QString& title ) +{ + if ( desktop() && desktop()->toolMgr() ) + desktop()->toolMgr()->clear( title ); +} + /*! Creates new menu item \return identificator of new action in menu manager