Add declarative object-registration API to QML WebChannel.
The new registeredObjects list property is now preferred over the old
imparative registerObject/registerObjects API.
Items that are added to the list need an attached WebChannel.id property
which holds the identifier under which the object is published to remote
clients.
Change-Id: I96a8047b9a85e27f3fd48c900180c22ebd20eb35
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
| commit | 625c881cc74f2552e211b9ba81ac3b0ed30e9947 |
| parent | b23442674f1b30d936fca43aee7b7d6dece15b2c |
| author | Milian Wolff <milian.wolff@kdab.com> |
| committer | The Qt Project <gerrit-noreply@qt-project.org> |
| commit time | Fri, 10 Jan 2014 13:09:03 +0100 |
- M examples/qtobject/main.qml
- M src/imports/webchannel/qmlwebchannel.cpp
- M src/imports/webchannel/qmlwebchannel.h
- A src/imports/webchannel/qmlwebchannelattached.cpp
- A src/imports/webchannel/qmlwebchannelattached.h
- M src/imports/webchannel/webchannel.pro
- M src/webchannel/qwebchannel.cpp
- M src/webchannel/qwebchannel.h
- M tests/qml/tst_metaobjectpublisher.qml