summaryrefslogtreecommitdiff
path: root/doc/pluginhowto/examples/wizard/customproject/customprojectplugin.cpp
blob: cbb1ca68e2174ec8148b7f611a3dfc790e2a03c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#include "customprojectplugin.h"
#include "customprojectwizard.h"

#include <QtPlugin>
#include <QStringList>

CustomProjectPlugin::CustomProjectPlugin()
{
    // Do nothing
}

CustomProjectPlugin::~CustomProjectPlugin()
{
    // Do notning
}

void CustomProjectPlugin::extensionsInitialized()
{
    // Do nothing
}

bool CustomProjectPlugin::initialize(const QStringList& args, QString *errMsg)
{
    Q_UNUSED(args);
    Q_UNUSED(errMsg);

    addAutoReleasedObject(new CustomProjectWizard);

    return true;
}

void CustomProjectPlugin::shutdown()
{
    // Do nothing
}

Q_EXPORT_PLUGIN(CustomProjectPlugin)