How can I activate the pHideUnselect action from the modelstructure class?
moldestructure.cpp File
declaration
ModelStructure
::ModelStructure(OpenglView
* pOpenglView,
QAction* pInstanceProperties,
QAction* pHideUnselect ,
QAction* pCopy,
QAction* pPaste, QPair<GLC_uint, GLC_StructOccurence
*>
*pClipBoard,
QWidget *parent
).
.
.
{
// Add contextual menu
//Contextual menu Creation
structure->addAction(pHideUnselect);
moldestructure.cpp File
declaration
ModelStructure::ModelStructure(OpenglView* pOpenglView, QAction* pInstanceProperties, QAction* pHideUnselect , QAction* pCopy, QAction* pPaste, QPair<GLC_uint, GLC_StructOccurence*>*pClipBoard, QWidget *parent)
: QWidget(parent)
.
.
.
{
// Add contextual menu
//Contextual menu Creation
structure->addAction(pHideUnselect);
To copy to clipboard, switch view to plain text mode
pHideUnselect is defined in glc_player.cpp the class and references are created as follows:
m_pModelManagerView= new ModelManagerView(&m_OpenglView, ui.action_Property, ui.actionHide_unselected, ui.actionCopy, ui.actionPaste, &m_ClipBoard, ui.albumManagementWindow);
connect(ui.actionHide_unselected, SIGNAL(triggered()), this, SLOT(hideUnselected()));
m_pModelManagerView= new ModelManagerView(&m_OpenglView, ui.action_Property, ui.actionHide_unselected, ui.actionCopy, ui.actionPaste, &m_ClipBoard, ui.albumManagementWindow);
connect(ui.actionHide_unselected, SIGNAL(triggered()), this, SLOT(hideUnselected()));
To copy to clipboard, switch view to plain text mode
but I do not know how to execute pHideUnselect manually as if this were selected from the menu.
Bookmarks