diff options
author | Milian Wolff <milian.wolff@kdab.com> | 2014-01-08 17:48:08 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-01-08 18:16:35 +0100 |
commit | 4117c5b8ea09d1ed872927edb31a63868c3f43e2 (patch) | |
tree | f90ca7ea8e7590477179d6bd20358d94100433ff /src/webchannel/qwebchannel.cpp | |
parent | 66c0d916131c1e9e896705971f20385c75e753a2 (diff) | |
download | qtwebchannel-4117c5b8ea09d1ed872927edb31a63868c3f43e2.tar.gz |
Cleanup public API, remove private slot.
Change-Id: I73a83380c571ed5a400b16cb255562bb8079eaac
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/webchannel/qwebchannel.cpp')
-rw-r--r-- | src/webchannel/qwebchannel.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/webchannel/qwebchannel.cpp b/src/webchannel/qwebchannel.cpp index 026b31e..f7a2c5f 100644 --- a/src/webchannel/qwebchannel.cpp +++ b/src/webchannel/qwebchannel.cpp @@ -73,7 +73,9 @@ QWebChannel::QWebChannel(QObject *parent) connect(d->socket, SIGNAL(failed(QString)), SIGNAL(failed(QString))); connect(d->socket, SIGNAL(initialized()), - SLOT(onInitialized())); + SIGNAL(initialized())); + connect(d->socket, SIGNAL(baseUrlChanged(QString)), + SIGNAL(baseUrlChanged(QString))); connect(d->socket, SIGNAL(pongReceived()), SIGNAL(pongReceived())); @@ -131,12 +133,6 @@ void QWebChannel::setBlockUpdates(bool block) d->publisher->setBlockUpdates(block); } -void QWebChannel::onInitialized() -{ - emit initialized(); - emit baseUrlChanged(d->socket->m_baseUrl); -} - void QWebChannel::respond(const QJsonValue& messageId, const QJsonValue& data) const { d->sendJSONMessage(messageId, data, true); @@ -156,5 +152,3 @@ void QWebChannel::ping() const { d->socket->ping(); } - -#include "qwebchannel.moc" |