From 08c8ce32e917619f49ea019914b1c981044a04d8 Mon Sep 17 00:00:00 2001 From: con Date: Mon, 21 Jun 2010 16:12:49 +0200 Subject: Move the plugin examples to subdir of pluginhowto. --- .../wizard/customproject/customprojectplugin.cpp | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 doc/pluginhowto/examples/wizard/customproject/customprojectplugin.cpp (limited to 'doc/pluginhowto/examples/wizard/customproject/customprojectplugin.cpp') diff --git a/doc/pluginhowto/examples/wizard/customproject/customprojectplugin.cpp b/doc/pluginhowto/examples/wizard/customproject/customprojectplugin.cpp new file mode 100644 index 0000000000..cbb1ca68e2 --- /dev/null +++ b/doc/pluginhowto/examples/wizard/customproject/customprojectplugin.cpp @@ -0,0 +1,37 @@ +#include "customprojectplugin.h" +#include "customprojectwizard.h" + +#include +#include + +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) -- cgit v1.2.1