summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativemoduleplugin/plugin/plugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/qdeclarativemoduleplugin/plugin/plugin.cpp')
-rw-r--r--tests/auto/declarative/qdeclarativemoduleplugin/plugin/plugin.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/auto/declarative/qdeclarativemoduleplugin/plugin/plugin.cpp b/tests/auto/declarative/qdeclarativemoduleplugin/plugin/plugin.cpp
index 154693c..fd94cc6 100644
--- a/tests/auto/declarative/qdeclarativemoduleplugin/plugin/plugin.cpp
+++ b/tests/auto/declarative/qdeclarativemoduleplugin/plugin/plugin.cpp
@@ -73,15 +73,10 @@ public:
qWarning("plugin created");
}
- QStringList keys() const
- {
- return QStringList() << QLatin1String("com.nokia.AutoTestQmlPluginType");
- }
-
- void initialize(QDeclarativeEngine*, const char *uri)
+ void registerTypes(const char *uri)
{
Q_ASSERT(QLatin1String(uri) == "com.nokia.AutoTestQmlPluginType");
- QML_REGISTER_TYPE(com.nokia.AutoTestQmlPluginType,1,0,MyPluginType,MyPluginType);
+ qmlRegisterType<MyPluginType>(uri, 1, 0, "MyPluginType");
}
};