forked from qt-creator/qt-creator
Use simpler Plugin::initialize() when feasible
Change-Id: I567965d266f20526bda9f823e31a04b354d53fb1 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -44,7 +44,7 @@
|
||||
To make your wizard known to the system, add your IWizardFactory instance to the
|
||||
plugin manager's object pool in your plugin's initialize function:
|
||||
\code
|
||||
bool MyPlugin::initialize(const QStringList &arguments, QString *errorString)
|
||||
void MyPlugin::initialize()
|
||||
{
|
||||
// ... do setup
|
||||
addAutoReleasedObject(new MyWizardFactory);
|
||||
|
||||
Reference in New Issue
Block a user