From 7f6285f334a735f9245f83f80b9807a6eaa26aa8 Mon Sep 17 00:00:00 2001 From: Alexei Rousskikh Date: Mon, 2 Apr 2012 12:26:19 -0400 Subject: bug fix: replaced obsolete receive with readReadyMessage/processMessages Change-Id: I160c450811b86add7c0c8fd0733054f6385aa735 Reviewed-by: Andrew Christian --- src/jsonclient.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/jsonclient.cpp b/src/jsonclient.cpp index b16fd96..40f8d0a 100644 --- a/src/jsonclient.cpp +++ b/src/jsonclient.cpp @@ -133,8 +133,7 @@ bool JsonClient::connectTCP(const QString& hostname, int port) connect(socket, SIGNAL(disconnected()), SLOT(handleSocketDisconnected())); Q_D(JsonClient); d->mStream.setDevice(socket); - connect(&d->mStream, SIGNAL(receive(const QJsonObject&)), - this, SIGNAL(receive(const QJsonObject&))); + connect(&d->mStream, SIGNAL(readyReadMessage()), this, SLOT(processMessages())); return d->mStream.send(d->mRegistrationMessage); } -- cgit v1.2.3