fixed virtual hidden method warning TcpClient.cpp (Mac OS X)

git-svn-id: http://find-object.googlecode.com/svn/trunk/find_object@285 620bd6b2-0a58-f614-fd9a-1bd335dccda9
This commit is contained in:
matlabbe 2014-05-25 20:59:57 +00:00
parent 6478e78899
commit 75aef2e726
2 changed files with 3 additions and 3 deletions

View File

@ -16,14 +16,14 @@ TcpClient::TcpClient(const QString & hostname, quint16 port, QObject *parent) :
QTcpSocket(parent), QTcpSocket(parent),
blockSize_(0) blockSize_(0)
{ {
connect(this, SIGNAL(readyRead()), this, SLOT(readData())); connect(this, SIGNAL(readyRead()), this, SLOT(readReceivedData()));
connect(this, SIGNAL(error(QAbstractSocket::SocketError)), this, SLOT(displayError(QAbstractSocket::SocketError))); connect(this, SIGNAL(error(QAbstractSocket::SocketError)), this, SLOT(displayError(QAbstractSocket::SocketError)));
connect(this, SIGNAL(disconnected()), this, SLOT(connectionLost())); connect(this, SIGNAL(disconnected()), this, SLOT(connectionLost()));
this->connectToHost(hostname, port); this->connectToHost(hostname, port);
} }
void TcpClient::readData() void TcpClient::readReceivedData()
{ {
QDataStream in(this); QDataStream in(this);
in.setVersion(QDataStream::Qt_4_0); in.setVersion(QDataStream::Qt_4_0);

View File

@ -17,7 +17,7 @@ public:
TcpClient(const QString & hostname, quint16 port, QObject * parent = 0); TcpClient(const QString & hostname, quint16 port, QObject * parent = 0);
private slots: private slots:
void readData(); void readReceivedData();
void displayError(QAbstractSocket::SocketError socketError); void displayError(QAbstractSocket::SocketError socketError);
void connectionLost(); void connectionLost();