summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurice Kalinowski <maurice.kalinowski@digia.com>2013-02-20 08:23:15 +0100
committerKai Koehne <kai.koehne@digia.com>2013-02-20 09:39:58 +0100
commitc9d7b396e506ea5255655b2dfe62d30916c60795 (patch)
tree9f58f775a841109fa0c44b1a68c89aaa74954ee3
parent88ac76fb724e64d58d5af45dfdfefcdc58ae2db5 (diff)
downloadqt-creator-c9d7b396e506ea5255655b2dfe62d30916c60795.tar.gz
update wizard template
- on Windows the export is required, while on Unix everything gets exported by default. - for Qt5 based Qt Creator we need the specification of the json file. Change-Id: I1e8055fcb2b81d42369f906e1ba42a4c2b811553 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
-rw-r--r--share/qtcreator/templates/wizards/qtcreatorplugin/myplugin.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/share/qtcreator/templates/wizards/qtcreatorplugin/myplugin.h b/share/qtcreator/templates/wizards/qtcreatorplugin/myplugin.h
index 92eaa9d3e8..97aebfb619 100644
--- a/share/qtcreator/templates/wizards/qtcreatorplugin/myplugin.h
+++ b/share/qtcreator/templates/wizards/qtcreatorplugin/myplugin.h
@@ -8,9 +8,10 @@
namespace %PluginName% {
namespace Internal {
-class %PluginName%Plugin : public ExtensionSystem::IPlugin
+class %PluginName:u%SHARED_EXPORT %PluginName%Plugin : public ExtensionSystem::IPlugin
{
Q_OBJECT
+ Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "%PluginName%.json")
public:
%PluginName%Plugin();