diff options
author | Jędrzej Nowacki <jedrzej.nowacki@digia.com> | 2013-06-11 10:20:29 +0200 |
---|---|---|
committer | Jędrzej Nowacki <jedrzej.nowacki@digia.com> | 2013-06-11 10:20:29 +0200 |
commit | ebdb9ed17f50fdda3d8b72f8983fc355bcdc9eb0 (patch) | |
tree | d48c85e179c98f8e7d7a8d42017c3afc88bd87fc /src/enginio_plugin/enginioplugin.cpp | |
parent | 600e44f57be5eb76e29a7cb97f9c513488da13c6 (diff) | |
download | qtenginio-ebdb9ed17f50fdda3d8b72f8983fc355bcdc9eb0.tar.gz |
Make EnginioClient unconstructible from QML
In QML EnginioQmlClient should be used
Diffstat (limited to 'src/enginio_plugin/enginioplugin.cpp')
-rw-r--r-- | src/enginio_plugin/enginioplugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/enginio_plugin/enginioplugin.cpp b/src/enginio_plugin/enginioplugin.cpp index 62f64a0..d7cec9a 100644 --- a/src/enginio_plugin/enginioplugin.cpp +++ b/src/enginio_plugin/enginioplugin.cpp @@ -142,7 +142,7 @@ void EnginioPlugin::registerTypes(const char *uri) { // @uri Enginio qmlRegisterType<EnginioQmlClient>(uri, 1, 0, "Enginio"); - qmlRegisterType<EnginioClient>(uri, 1, 0, "__Enginio"); + qmlRegisterUncreatableType<EnginioClient>(uri, 1, 0, "__Enginio", "__Enginio should not be instantiated from QML directly."); qmlRegisterType<EnginioQmlModel>(uri, 1, 0, "EnginioModel"); qmlRegisterUncreatableType<EnginioReply>(uri, 1, 0, "__EnginioReply", "__EnginioReply cannot be instantiated."); qmlRegisterUncreatableType<EnginioQmlReply>(uri, 1, 0, "EnginioReply", "EnginioReply cannot be instantiated."); |