diff --git a/src/imports/qmlwebsockets/qmldir b/src/imports/qmlwebsockets/qmldir index 4ae1035dd82be0ccf5ef594ac8af682af273efaa..3202976600172ee372d377f26d3562c103e7b2e4 100644 --- a/src/imports/qmlwebsockets/qmldir +++ b/src/imports/qmlwebsockets/qmldir @@ -1,3 +1,4 @@ module Qt.WebSockets plugin declarative_qmlwebsockets +classname QtWebSocketsDeclarativeModule typeinfo plugins.qmltypes diff --git a/src/imports/qmlwebsockets/qmlwebsockets_plugin.cpp b/src/imports/qmlwebsockets/qmlwebsockets_plugin.cpp index a36aeac21568920e8d5614e7dc0534ab88dd17bf..9c7f2d6583d67bcccbca070242e5b32bc6581697 100644 --- a/src/imports/qmlwebsockets/qmlwebsockets_plugin.cpp +++ b/src/imports/qmlwebsockets/qmlwebsockets_plugin.cpp @@ -45,7 +45,7 @@ QT_BEGIN_NAMESPACE -void QmlWebSocket_plugin::registerTypes(const char *uri) +void QtWebSocketsDeclarativeModule::registerTypes(const char *uri) { Q_ASSERT(uri == QLatin1String("Qt.WebSockets")); diff --git a/src/imports/qmlwebsockets/qmlwebsockets_plugin.h b/src/imports/qmlwebsockets/qmlwebsockets_plugin.h index 1cab5871300c779db6f2bd934984678595c7ffdf..9e6409114f1095cd19dff598bf22bc282caed094 100644 --- a/src/imports/qmlwebsockets/qmlwebsockets_plugin.h +++ b/src/imports/qmlwebsockets/qmlwebsockets_plugin.h @@ -48,7 +48,7 @@ QT_BEGIN_NAMESPACE -class QmlWebSocket_plugin : public QQmlExtensionPlugin +class QtWebSocketsDeclarativeModule : public QQmlExtensionPlugin { Q_OBJECT Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface") diff --git a/src/imports/qmlwebsockets/qqmlwebsocket.cpp b/src/imports/qmlwebsockets/qqmlwebsocket.cpp index f91b07c04d2e49044e2c97742220c0d0da6bbe59..d1652608be29b9c760fe9f462b63e8d6123a3df1 100644 --- a/src/imports/qmlwebsockets/qqmlwebsocket.cpp +++ b/src/imports/qmlwebsockets/qqmlwebsocket.cpp @@ -99,6 +99,11 @@ \sa WebSocket::status */ +/*! + \qmlmethod void WebSocket::sendTextMessage(string message) + Sends \c message to the server. + */ + #include "qqmlwebsocket.h" #include <QtWebSockets/QWebSocket>