aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/helloworld
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@digia.com>2014-08-26 17:29:38 +0200
committerEike Ziller <eike.ziller@digia.com>2014-09-02 15:11:24 +0200
commitb5b6a46b4e17dde56ac4409bd6551eaaf297b375 (patch)
tree216df467b3df092bad019656329d299b44e51ee1 /src/plugins/helloworld
parent8dc9d67e898ecb9afa239fcba914ed178931901b (diff)
ExtensionSystem: Use Qt 5 plugin metadata instead of .pluginspec files
Change-Id: I2b2c704260c613985a4bda179658ec1f8879e70f Reviewed-by: Christian Kandeler <christian.kandeler@digia.com> Reviewed-by: Christian Stenger <christian.stenger@digia.com> Reviewed-by: Daniel Teske <daniel.teske@digia.com> Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'src/plugins/helloworld')
-rw-r--r--src/plugins/helloworld/HelloWorld.json.in19
-rw-r--r--src/plugins/helloworld/HelloWorld.pluginspec.in16
-rw-r--r--src/plugins/helloworld/helloworldplugin.cpp4
3 files changed, 21 insertions, 18 deletions
diff --git a/src/plugins/helloworld/HelloWorld.json.in b/src/plugins/helloworld/HelloWorld.json.in
new file mode 100644
index 00000000000..a276f203e15
--- /dev/null
+++ b/src/plugins/helloworld/HelloWorld.json.in
@@ -0,0 +1,19 @@
+{
+ \"Name\" : \"HelloWorld\",
+ \"Version\" : \"$$QTCREATOR_VERSION\",
+ \"CompatVersion\" : \"$$QTCREATOR_COMPAT_VERSION\",
+ \"Experimental\" : true,
+ \"Vendor\" : \"Digia Plc\",
+ \"Copyright\" : \"(C) 2014 Digia Plc\",
+ \"License\" : [ \"Commercial Usage\",
+ \"\",
+ \"Licensees holding valid Qt Commercial licenses may use this plugin in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Digia.\",
+ \"\",
+ \"GNU Lesser General Public License Usage\",
+ \"\",
+ \"Alternatively, this plugin may be used under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation. Please review the following information to ensure the GNU Lesser General Public License version 2.1 requirements will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.\"
+ ],
+ \"Description\" : \"Hello World sample plugin.\",
+ \"Url\" : \"http://www.qt-project.org\",
+ $$dependencyList
+}
diff --git a/src/plugins/helloworld/HelloWorld.pluginspec.in b/src/plugins/helloworld/HelloWorld.pluginspec.in
deleted file mode 100644
index b99efdddf33..00000000000
--- a/src/plugins/helloworld/HelloWorld.pluginspec.in
+++ /dev/null
@@ -1,16 +0,0 @@
-<plugin name=\"HelloWorld\" version=\"$$QTCREATOR_VERSION\" compatVersion=\"$$QTCREATOR_COMPAT_VERSION\" experimental=\"true\">
- <vendor>Digia Plc</vendor>
- <copyright>(C) 2014 Digia Plc</copyright>
- <license>
-Commercial Usage
-
-Licensees holding valid Qt Commercial licenses may use this plugin in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Digia.
-
-GNU Lesser General Public License Usage
-
-Alternatively, this plugin may be used under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation. Please review the following information to ensure the GNU Lesser General Public License version 2.1 requirements will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
- </license>
- <description>Hello World sample plugin.</description>
- <url>http://www.qt-project.org</url>
- $$dependencyList
-</plugin>
diff --git a/src/plugins/helloworld/helloworldplugin.cpp b/src/plugins/helloworld/helloworldplugin.cpp
index bb38692de23..062d1fdedbf 100644
--- a/src/plugins/helloworld/helloworldplugin.cpp
+++ b/src/plugins/helloworld/helloworldplugin.cpp
@@ -129,12 +129,12 @@ bool HelloWorldPlugin::initialize(const QStringList &arguments, QString *errorMe
}
/*! Notification that all extensions that this plugin depends on have been
- initialized. The dependencies are defined in the plugins .pluginspec file.
+ initialized. The dependencies are defined in the plugins .json(.in) file.
Normally this function is used for things that rely on other plugins to have
added objects to the plugin manager, that implement interfaces that we're
interested in. These objects can now be requested through the
- PluginManagerInterface.
+ PluginManager.
The HelloWorldPlugin doesn't need things from other plugins, so it does
nothing here.