diff options
Diffstat (limited to 'examples/standalone/main.cpp')
-rw-r--r-- | examples/standalone/main.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/examples/standalone/main.cpp b/examples/standalone/main.cpp index 6970633..1187950 100644 --- a/examples/standalone/main.cpp +++ b/examples/standalone/main.cpp @@ -41,7 +41,6 @@ ****************************************************************************/ #include "qwebchannel.h" -#include "qmetaobjectpublisher.h" #include <QApplication> #include <QDialog> @@ -111,16 +110,10 @@ int main(int argc, char** argv) QApplication app(argc, argv); QWebChannel channel; - QMetaObjectPublisher publisher; - publisher.setWebChannel(&channel); - QObject::connect(&channel, SIGNAL(rawMessageReceived(QString)), - &publisher, SLOT(handleRawMessage(QString))); Dialog dialog(&channel); - QVariantMap objects; - objects[QStringLiteral("dialog")] = QVariant::fromValue(&dialog); - publisher.registerObjects(objects); + channel.registerObject(QStringLiteral("dialog"), &dialog); return app.exec(); } |