forked from qt-creator/qt-creator
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>
This commit is contained in:
19
src/plugins/helloworld/HelloWorld.json.in
Normal file
19
src/plugins/helloworld/HelloWorld.json.in
Normal file
@@ -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
|
||||
}
|
||||
@@ -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>
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user