Salome HOME
Copyright update 2022
[modules/gui.git] / src / Qtx / QtxActionGroup.cxx
index 7b47de842fe7e422b1b32319cec15b0d933ac387..31f2f09f9e0f46fe27207f7307abc3788d5531e7 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2022  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -208,6 +208,15 @@ void QtxActionGroup::onTriggered( QAction* a )
   emit selected( a );
 }
 
+/*!
+  \brief Enable/disable action group
+*/
+void QtxActionGroup::setEnabled( bool on )
+{
+  QtxActionSet::setEnabled( on );
+  myActionGroup->setEnabled( on );
+}
+
 /*!
   \brief Update action group for the specified widget.
   \param w a widget this action group is added to