TablesPage is now CatalogInspector and is now a module.
This commit is contained in:
parent
d3c85722c7
commit
3e4917428d
7 changed files with 101 additions and 45 deletions
|
|
@ -60,9 +60,10 @@ private:
|
|||
|
||||
|
||||
template <typename T>
|
||||
std::shared_ptr<PluginModule> createPluginModule(QString name, QString ident)
|
||||
std::shared_ptr<PluginModule> createPluginModule(QString name, QString ident, QString category={})
|
||||
{
|
||||
auto module = std::make_shared<T>(std::move(name), std::move(ident));
|
||||
module->setDisplayCategory(category);
|
||||
|
||||
PluginRegister::getInstance()->registerModule(module);
|
||||
return std::move(module);
|
||||
|
|
@ -73,5 +74,10 @@ std::shared_ptr<PluginModule> createPluginModule(QString name, QString ident)
|
|||
std::weak_ptr<PluginModule> register_variable = createPluginModule<module>\
|
||||
(name, ident);}
|
||||
|
||||
#define REGISTER_PLUGIN_MODULE_CAT(module, name, ident, category) \
|
||||
namespace {\
|
||||
std::weak_ptr<PluginModule> register_variable = createPluginModule<module>\
|
||||
(name, ident, category);}
|
||||
|
||||
|
||||
#endif // PLUGIN_SUPPORTPLUGINMODULE_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue