From c9d7b396e506ea5255655b2dfe62d30916c60795 Mon Sep 17 00:00:00 2001 From: Maurice Kalinowski <maurice.kalinowski@digia.com> Date: Wed, 20 Feb 2013 08:23:15 +0100 Subject: [PATCH] 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> --- share/qtcreator/templates/wizards/qtcreatorplugin/myplugin.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/share/qtcreator/templates/wizards/qtcreatorplugin/myplugin.h b/share/qtcreator/templates/wizards/qtcreatorplugin/myplugin.h index 92eaa9d3e8f..97aebfb6194 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(); -- GitLab