mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 09:19:01 +00:00
Remove display sheet id action when unloading the plugin.
This commit is contained in:
parent
4096166e66
commit
892678952f
2 changed files with 15 additions and 0 deletions
|
@ -34,6 +34,18 @@
|
||||||
|
|
||||||
using namespace SheetIdViewPlugin;
|
using namespace SheetIdViewPlugin;
|
||||||
|
|
||||||
|
DispSheetIdPlugin::DispSheetIdPlugin()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
DispSheetIdPlugin::~DispSheetIdPlugin()
|
||||||
|
{
|
||||||
|
Core::MenuManager *menuManager = Core::ICore::instance()->menuManager();
|
||||||
|
QAction *a = menuManager->action( "SheetIdView" );
|
||||||
|
menuManager->unregisterAction( "SheetIdView" );
|
||||||
|
delete a;
|
||||||
|
}
|
||||||
|
|
||||||
bool DispSheetIdPlugin::initialize(ExtensionSystem::IPluginManager *pluginManager, QString *errorString)
|
bool DispSheetIdPlugin::initialize(ExtensionSystem::IPluginManager *pluginManager, QString *errorString)
|
||||||
{
|
{
|
||||||
Q_UNUSED(errorString);
|
Q_UNUSED(errorString);
|
||||||
|
|
|
@ -37,6 +37,9 @@ class DispSheetIdPlugin : public QObject, public ExtensionSystem::IPlugin
|
||||||
Q_INTERFACES(ExtensionSystem::IPlugin)
|
Q_INTERFACES(ExtensionSystem::IPlugin)
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
DispSheetIdPlugin();
|
||||||
|
~DispSheetIdPlugin();
|
||||||
|
|
||||||
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