mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-19 05:36:13 +00:00
Remove sheet builder action when unloading the plugin.
This commit is contained in:
parent
a32e1b6def
commit
d28d038008
2 changed files with 14 additions and 0 deletions
|
@ -35,6 +35,18 @@
|
||||||
|
|
||||||
using namespace Plugin;
|
using namespace Plugin;
|
||||||
|
|
||||||
|
SheetBuilderPlugin::SheetBuilderPlugin()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
SheetBuilderPlugin::~SheetBuilderPlugin()
|
||||||
|
{
|
||||||
|
Core::MenuManager *menuManager = Core::ICore::instance()->menuManager();
|
||||||
|
QAction *a = menuManager->action( "SheetBuilder" );
|
||||||
|
menuManager->unregisterAction( "SheetBuilder" );
|
||||||
|
delete a;
|
||||||
|
}
|
||||||
|
|
||||||
bool SheetBuilderPlugin::initialize(ExtensionSystem::IPluginManager *pluginManager, QString *errorString)
|
bool SheetBuilderPlugin::initialize(ExtensionSystem::IPluginManager *pluginManager, QString *errorString)
|
||||||
{
|
{
|
||||||
Q_UNUSED(errorString);
|
Q_UNUSED(errorString);
|
||||||
|
|
|
@ -36,6 +36,8 @@ class SheetBuilderPlugin : public QObject, public ExtensionSystem::IPlugin
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
Q_INTERFACES(ExtensionSystem::IPlugin)
|
Q_INTERFACES(ExtensionSystem::IPlugin)
|
||||||
public:
|
public:
|
||||||
|
SheetBuilderPlugin();
|
||||||
|
~SheetBuilderPlugin();
|
||||||
bool initialize(ExtensionSystem::IPluginManager *pluginManager, QString *errorString);
|
bool initialize(ExtensionSystem::IPluginManager *pluginManager, QString *errorString);
|
||||||
void extensionsInitialized();
|
void extensionsInitialized();
|
||||||
void setNelContext(NLMISC::INelContext *nelContext);
|
void setNelContext(NLMISC::INelContext *nelContext);
|
||||||
|
|
Loading…
Reference in a new issue