+ QActionGroup* createActionGroup(const int id, const bool exclusive);
return a;
}
+QActionGroup* SALOME_PYQT_Module::createActionGroup(const int id, const bool exclusive)
+{
+ QAction* a = action( id );
+ if ( !a || !a->inherits("QActionGroup")) {
+ a = new QActionGroup(0,0,exclusive);
+ SalomeApp_Module::registerAction( id, a );
+ }
+ return (QActionGroup*)a;
+}
+
/*!
* Load icon from resource file
*/
int actionId( const QAction* ) const;
QAction* createAction( const int, const QString&, const QString&, const QString&,
const QString&, const int, const bool = false );
+ QActionGroup* createActionGroup(const int id, const bool exclusive);
+
/* load icon from resource file */
QIconSet loadIcon( const QString& fileName );