diff options
Diffstat (limited to 'tests/plugins/declarativetestplugin/locationtest.cpp')
-rw-r--r-- | tests/plugins/declarativetestplugin/locationtest.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/tests/plugins/declarativetestplugin/locationtest.cpp b/tests/plugins/declarativetestplugin/locationtest.cpp index a2864d12..cde1d97f 100644 --- a/tests/plugins/declarativetestplugin/locationtest.cpp +++ b/tests/plugins/declarativetestplugin/locationtest.cpp @@ -46,15 +46,13 @@ class QLocationDeclarativeTestModule: public QQmlExtensionPlugin Q_OBJECT Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface/1.0") public: - virtual void registerTypes(const char* uri) { - qDebug() << "registerTypes in new test plugin: " << uri; - if (QLatin1String(uri) == QLatin1String("QtLocation.test")) { - // This version numbering is not correct. It is just something to get going - // until the proper versioning scheme of QML plugins in Qt5 is agreed upon. - qmlRegisterType<QDeclarativePinchGenerator>(uri, 5, 0, "PinchGenerator"); - qmlRegisterType<QDeclarativeLocationTestModel>(uri, 5, 0, "TestModel"); + virtual void registerTypes(const char* uri) + { + if (QLatin1String(uri) == QLatin1String("QtLocation.Test")) { + qmlRegisterType<QDeclarativePinchGenerator>(uri, 5, 5, "PinchGenerator"); + qmlRegisterType<QDeclarativeLocationTestModel>(uri, 5, 5, "TestModel"); } else { - qDebug() << "Unsupported URI given to load location test QML plugin: " << QLatin1String(uri); + qWarning() << "Unsupported URI given to load location test QML plugin: " << QLatin1String(uri); } } }; |