aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qquickconnection/tst_qquickconnection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qquickconnection/tst_qquickconnection.cpp')
-rw-r--r--tests/auto/qml/qquickconnection/tst_qquickconnection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qml/qquickconnection/tst_qquickconnection.cpp b/tests/auto/qml/qquickconnection/tst_qquickconnection.cpp
index ad687dd085..1167281eb0 100644
--- a/tests/auto/qml/qquickconnection/tst_qquickconnection.cpp
+++ b/tests/auto/qml/qquickconnection/tst_qquickconnection.cpp
@@ -263,7 +263,7 @@ static QObject *module_api_factory(QQmlEngine *engine, QJSEngine *scriptEngine)
// QTBUG-20937
void tst_qquickconnection::moduleApiTarget()
{
- qmlRegisterModuleApi("MyTestModuleApi", 1, 0, module_api_factory);
+ qmlRegisterModuleApi<MyTestModuleApi>("MyTestModuleApi", 1, 0, module_api_factory);
QQmlComponent component(&engine, testFileUrl("moduleapi-target.qml"));
QObject *object = component.create();
QVERIFY(object != 0);