ProjectExplorer: Self-register JsonWizardPage related factories

Moves the using code closer to the common factory setup pattern.

Change-Id: I2ee85b911d43b63730ff994a4b07568b23b14f00
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2023-08-17 11:02:25 +02:00
parent 7b0a3e7e28
commit b48e10717f
11 changed files with 62 additions and 59 deletions

View File

@@ -72,6 +72,9 @@ public:
VcsPlugin *q;
QStandardItemModel *m_nickNameModel = nullptr;
VcsConfigurationPageFactory m_vcsConfigurationPageFactory;
VcsCommandPageFactory m_vcsCommandPageFactory;
};
static VcsPlugin *m_instance = nullptr;
@@ -100,9 +103,6 @@ void VcsPlugin::initialize()
return result;
});
JsonWizardFactory::registerPageFactory(new Internal::VcsConfigurationPageFactory);
JsonWizardFactory::registerPageFactory(new Internal::VcsCommandPageFactory);
JsExpander::registerGlobalObject<VcsJsExtension>("Vcs");
MacroExpander *expander = globalMacroExpander();