blob: 22f491c211c96d9112ac6d7ac24d395649d4879e (
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
38
39
40
41
42
43
|
#include "itemmodelwizardplugin.h"
#include "modelclasswizard.h"
#include <QApplication>
#include <QtPlugin>
#include <QStringList>
ItemModelWizardPlugin::ItemModelWizardPlugin()
{
// Do nothing
}
ItemModelWizardPlugin::~ItemModelWizardPlugin()
{
// Do notning
}
void ItemModelWizardPlugin::extensionsInitialized()
{
// Do nothing
}
bool ItemModelWizardPlugin::initialize(const QStringList& args, QString *errMsg)
{
Q_UNUSED(args);
Q_UNUSED(errMsg);
Core::BaseFileWizardParameters params;
params.setKind(Core::IWizard::ClassWizard);
params.setIcon(qApp->windowIcon());
params.setDescription("Generates an item-model class");
params.setName("Item Model");
params.setCategory("FooCompany");
params.setTrCategory(tr("FooCompany"));
addAutoReleasedObject(new ModelClassWizard(params, this));
return true;
}
void ItemModelWizardPlugin::shutdown()
{
// Do nothing
}
Q_EXPORT_PLUGIN(ItemModelWizardPlugin)
|