Commit 624c6fe6 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

QmlDebug: Use Qt5-style connects

The heavy lifting was done by clazy.

Change-Id: I94f5c85388af1b8e06128800090222a6b64f5191
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@theqtcompany.com>
Reviewed-by: Ulf Hermann's avatarUlf Hermann <ulf.hermann@qt.io>
parent d058ca6d
......@@ -385,7 +385,8 @@ void QmlDebugConnection::startLocalServer(const QString &fileName)
d->server->deleteLater();
d->server = new QLocalServer(this);
// QueuedConnection so that waitForNewConnection() returns true.
connect(d->server, SIGNAL(newConnection()), this, SLOT(newConnection()), Qt::QueuedConnection);
connect(d->server, &QLocalServer::newConnection,
this, &QmlDebugConnection::newConnection, Qt::QueuedConnection);
d->server->listen(fileName);
}
......
......@@ -70,13 +70,12 @@ signals:
void socketError(QAbstractSocket::SocketError error);
void socketStateChanged(QAbstractSocket::SocketState state);
private slots:
private:
void newConnection();
void socketConnected();
void socketDisconnected();
void protocolReadyRead();
private:
QScopedPointer<QmlDebugConnectionPrivate> d_ptr;
};
......
......@@ -119,7 +119,7 @@ signals:
void readyRead();
void invalidPacket();
public slots:
public:
void aboutToClose()
{
inProgress.clear();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment