From 4117c5b8ea09d1ed872927edb31a63868c3f43e2 Mon Sep 17 00:00:00 2001 From: Milian Wolff Date: Wed, 8 Jan 2014 17:48:08 +0100 Subject: Cleanup public API, remove private slot. Change-Id: I73a83380c571ed5a400b16cb255562bb8079eaac Reviewed-by: Simon Hausmann --- src/webchannel/qwebchannel.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'src/webchannel/qwebchannel.cpp') 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" -- cgit v1.2.3