diff options
author | con <qtc-committer@nokia.com> | 2010-06-21 16:12:49 +0200 |
---|---|---|
committer | con <qtc-committer@nokia.com> | 2010-06-21 17:32:15 +0200 |
commit | 08c8ce32e917619f49ea019914b1c981044a04d8 (patch) | |
tree | 19be2b931a4d4c58feb1fbb1056960171717c975 /doc/pluginhowto/examples/wizard/customproject/customprojectplugin.cpp | |
parent | abcb9358c26c240c409df15300507a90aef37f48 (diff) | |
download | qt-creator-08c8ce32e917619f49ea019914b1c981044a04d8.tar.gz |
Move the plugin examples to subdir of pluginhowto.
Diffstat (limited to 'doc/pluginhowto/examples/wizard/customproject/customprojectplugin.cpp')
-rw-r--r-- | doc/pluginhowto/examples/wizard/customproject/customprojectplugin.cpp | 37 |
1 files changed, 37 insertions, 0 deletions
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 <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) |