Commit f025ce23 authored by Simon Hausmann's avatar Simon Hausmann Committed by Simon Hausmann
Browse files

Improve robustness of QML plugin loading


Use a variable that expands to the latest plugin version instead of
hard-coding the string.

Change-Id: I8f7864e4ead85487943ed2c4dc2ae2584005c1c9
Reviewed-by: default avatarPaolo Angelelli <paolo.angelelli@theqtcompany.com>
Reviewed-by: default avatarAlex Blasche <alexander.blasche@qt.io>
parent 6a68408f
No related merge requests found
Showing with 3 additions and 3 deletions
......@@ -83,7 +83,7 @@ class QtLocationDeclarativeModule: public QQmlExtensionPlugin
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface/1.0"
Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid
FILE "plugin.json")
public:
......
......@@ -506,7 +506,7 @@ class QtPositioningDeclarativeModule: public QQmlExtensionPlugin
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface/1.0"
Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid
FILE "plugin.json")
public:
......
......@@ -48,7 +48,7 @@ static QObject *helper_factory(QQmlEngine *engine, QJSEngine *scriptEngine)
class QLocationDeclarativeTestModule: public QQmlExtensionPlugin
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface/1.0")
Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)
public:
virtual void registerTypes(const char* uri)
{
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment