diff options
Diffstat (limited to 'src/imports/qmlwebsockets/qmlwebsockets_plugin.cpp')
-rw-r--r-- | src/imports/qmlwebsockets/qmlwebsockets_plugin.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/imports/qmlwebsockets/qmlwebsockets_plugin.cpp b/src/imports/qmlwebsockets/qmlwebsockets_plugin.cpp index ea2d1b3..c8d2cd6 100644 --- a/src/imports/qmlwebsockets/qmlwebsockets_plugin.cpp +++ b/src/imports/qmlwebsockets/qmlwebsockets_plugin.cpp @@ -45,12 +45,8 @@ void QmlWebsocket_plugin::registerTypes(const char *uri) { - Q_ASSERT(uri == QLatin1String("Qt.Playground.WebSockets")); + Q_ASSERT(uri == QLatin1String("Qt.WebSockets")); - int major = 1; - int minor = 0; - - // @uri Qt.Playground.WebSockets - - qmlRegisterType<QQmlWebSocket>(uri, major, minor, "WebSocket"); + // @uri Qt.WebSockets + qmlRegisterType<QQmlWebSocket>(uri, 1 /*major*/, 0 /*minor*/, "WebSocket"); } |