forked from qt-creator/qt-creator
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user