diff options
Diffstat (limited to 'doc/examples/wizard/itemmodelwizard/itemmodelwizardplugin.cpp')
-rw-r--r-- | doc/examples/wizard/itemmodelwizard/itemmodelwizardplugin.cpp | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/doc/examples/wizard/itemmodelwizard/itemmodelwizardplugin.cpp b/doc/examples/wizard/itemmodelwizard/itemmodelwizardplugin.cpp deleted file mode 100644 index 22f491c211..0000000000 --- a/doc/examples/wizard/itemmodelwizard/itemmodelwizardplugin.cpp +++ /dev/null @@ -1,43 +0,0 @@ -#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) |