summaryrefslogtreecommitdiff
path: root/doc/pluginhowto/examples/wizard/customproject/customprojectplugin.cpp
diff options
context:
space:
mode:
authorcon <qtc-committer@nokia.com>2010-06-21 16:12:49 +0200
committercon <qtc-committer@nokia.com>2010-06-21 17:32:15 +0200
commit08c8ce32e917619f49ea019914b1c981044a04d8 (patch)
tree19be2b931a4d4c58feb1fbb1056960171717c975 /doc/pluginhowto/examples/wizard/customproject/customprojectplugin.cpp
parentabcb9358c26c240c409df15300507a90aef37f48 (diff)
downloadqt-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.cpp37
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)