#include <QtxWorkstack.h>
#include <QtxWorkspace.h>
+#include <QtxActionGroup.h>
#include <QtxActionMenuMgr.h>
#include <QtxActionToolMgr.h>
#include <QMenuBar>
#include <QMenu>
#include <QAction>
-#include <QActionGroup>
#include "sipAPISalomePyQtGUI.h"
\param toggle \c true for checkable action
\return created action
*/
-/*
-QActionGroup* SALOME_PYQT_Module::createActionGroup(const int id, const bool exclusive)
+QtxActionGroup* SALOME_PYQT_Module::createActionGroup(const int id, const bool exclusive)
{
- QActionGroup* a = action( id );
- if ( !a || !a->inherits( "QActionGroup" ) ) {
- a = new QActionGroup( this );
+ QtxActionGroup* a = qobject_cast<QtxActionGroup*>( action( id ) );
+ if ( !a ) {
+ a = new QtxActionGroup( this );
SalomeApp_Module::registerAction( id, a );
}
a->setExclusive( exclusive );
- return (QActionGroup*)a;
+ return a;
}
-*/
+
/*!
\brief Load icon from resource file.
\param fileName icon file name
class SALOME_PYQT_PyInterp;
class SUIT_ViewWindow;
class QAction;
-class QActionGroup;
+class QtxActionGroup;
class QMenu;
class SALOME_PYQT_EXPORT SALOME_PYQT_Module: public SalomeApp_Module
QAction* createAction( const int, const QString&, const QString&,
const QString&, const QString&, const int,
const bool = false, QObject* = 0 );
- // QActionGroup* createActionGroup( const int, const bool );
+ QtxActionGroup* createActionGroup( const int, const bool );
QIcon loadIcon( const QString& fileName );