QmlDebug: Use Qt5-style connects

The heavy lifting was done by clazy.

Change-Id: I94f5c85388af1b8e06128800090222a6b64f5191
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
Orgad Shaneh
2016-06-04 22:55:17 +03:00
committed by Orgad Shaneh
parent d058ca6db9
commit 624c6fe6ee
3 changed files with 4 additions and 4 deletions

View File

@@ -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);
}

View File

@@ -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;
};

View File

@@ -119,7 +119,7 @@ signals:
void readyRead();
void invalidPacket();
public slots:
public:
void aboutToClose()
{
inProgress.clear();