diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-02-23 23:49:55 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-02-23 23:49:55 (GMT) |
commit | 5ca4a7da103002e5ca0d9924d5a65a45f7309d29 (patch) | |
tree | 52432df81955b991bee26f8a51b6e11cd0688351 /tests | |
parent | 023f7230ade34c874d0de9e8710d966c61644e87 (diff) | |
download | Qt-5ca4a7da103002e5ca0d9924d5a65a45f7309d29.zip Qt-5ca4a7da103002e5ca0d9924d5a65a45f7309d29.tar.gz Qt-5ca4a7da103002e5ca0d9924d5a65a45f7309d29.tar.bz2 |
Compile after 20fc9f2e264f34dd8580949ddbe5511b78ab0ac4
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/declarative/qmlmoduleplugin/plugin/plugin.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/declarative/qmlmoduleplugin/plugin/plugin.cpp b/tests/auto/declarative/qmlmoduleplugin/plugin/plugin.cpp index 6354d31..8af9c0d 100644 --- a/tests/auto/declarative/qmlmoduleplugin/plugin/plugin.cpp +++ b/tests/auto/declarative/qmlmoduleplugin/plugin/plugin.cpp @@ -38,7 +38,7 @@ ** $QT_END_LICENSE$ ** ****************************************************************************/ -#include <QtDeclarative/qmlmoduleplugin.h> +#include <QtDeclarative/qmlextensionplugin.h> #include <QtDeclarative/qml.h> #include <QDebug> @@ -63,7 +63,7 @@ private: QML_DECLARE_TYPE(MyPluginType); -class MyPlugin : public QmlModulePlugin +class MyPlugin : public QmlExtensionPlugin { Q_OBJECT public: @@ -77,9 +77,9 @@ public: return QStringList() << QLatin1String("com.nokia.AutoTestQmlPluginType"); } - void defineModule(const QString& uri) + void initialize(QmlEngine*, const char *uri) { - Q_ASSERT(uri == "com.nokia.AutoTestQmlPluginType"); + Q_ASSERT(QLatin1String(uri) == "com.nokia.AutoTestQmlPluginType"); QML_REGISTER_TYPE(com.nokia.AutoTestQmlPluginType,1,0,MyPluginType,MyPluginType); } }; |