Remove Object Viewer menus when unloading the plugin.
This commit is contained in:
parent
686e1f2013
commit
bbfd0e15cb
2 changed files with 14 additions and 0 deletions
|
@ -71,6 +71,7 @@ CMainWindow::CMainWindow(QWidget *parent)
|
||||||
_lastDir("."),
|
_lastDir("."),
|
||||||
_mouseMode(NL3D::U3dMouseListener::edit3d)
|
_mouseMode(NL3D::U3dMouseListener::edit3d)
|
||||||
{
|
{
|
||||||
|
menu = NULL;
|
||||||
nldebug("CMainWindow::CMainWindow:");
|
nldebug("CMainWindow::CMainWindow:");
|
||||||
setObjectName("CMainWindow");
|
setObjectName("CMainWindow");
|
||||||
|
|
||||||
|
@ -134,6 +135,8 @@ CMainWindow::~CMainWindow()
|
||||||
settings->endGroup();
|
settings->endGroup();
|
||||||
settings->sync();
|
settings->sync();
|
||||||
|
|
||||||
|
removeMenus();
|
||||||
|
|
||||||
delete _AnimationDialog;
|
delete _AnimationDialog;
|
||||||
delete _AnimationSetDialog;
|
delete _AnimationSetDialog;
|
||||||
delete _SlotManagerDialog;
|
delete _SlotManagerDialog;
|
||||||
|
@ -323,6 +326,14 @@ void CMainWindow::createMenus()
|
||||||
connect(_ParticleControlDialog->toggleViewAction(), SIGNAL(triggered(bool)),
|
connect(_ParticleControlDialog->toggleViewAction(), SIGNAL(triggered(bool)),
|
||||||
_ParticleWorkspaceDialog->_PropertyDialog, SLOT(setVisible(bool)));
|
_ParticleWorkspaceDialog->_PropertyDialog, SLOT(setVisible(bool)));
|
||||||
|
|
||||||
|
menu = ovMenu;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void CMainWindow::removeMenus()
|
||||||
|
{
|
||||||
|
delete menu;
|
||||||
|
menu = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CMainWindow::createToolBars()
|
void CMainWindow::createToolBars()
|
||||||
|
|
|
@ -95,6 +95,7 @@ protected:
|
||||||
private:
|
private:
|
||||||
void createActions();
|
void createActions();
|
||||||
void createMenus();
|
void createMenus();
|
||||||
|
void removeMenus();
|
||||||
void createToolBars();
|
void createToolBars();
|
||||||
void createDialogs();
|
void createDialogs();
|
||||||
|
|
||||||
|
@ -144,6 +145,8 @@ private:
|
||||||
uint _numTri;
|
uint _numTri;
|
||||||
float _texMem;
|
float _texMem;
|
||||||
sint _mouseMode;
|
sint _mouseMode;
|
||||||
|
|
||||||
|
QMenu *menu;
|
||||||
};/* class CMainWindow */
|
};/* class CMainWindow */
|
||||||
|
|
||||||
} /* namespace NLQT */
|
} /* namespace NLQT */
|
||||||
|
|
Loading…
Reference in a new issue