forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/3.6'
Change-Id: Ic7cba72e7bec10e4fc0099b97e3317e391a6aa5d
This commit is contained in:
@@ -105,6 +105,7 @@ void QmlProfilerClientManager::setTcpConnection(QString host, quint64 port)
|
||||
{
|
||||
d->tcpHost = host;
|
||||
d->tcpPort = port;
|
||||
disconnectClient();
|
||||
}
|
||||
|
||||
void QmlProfilerClientManager::clearBufferedData()
|
||||
@@ -139,6 +140,8 @@ void QmlProfilerClientManager::connectClient(quint16 port)
|
||||
this, &QmlProfilerClientManager::qmlDebugConnectionOpened);
|
||||
connect(d->connection, &QmlDebugConnection::closed,
|
||||
this, &QmlProfilerClientManager::qmlDebugConnectionClosed);
|
||||
connect(d->connection, &QmlDebugConnection::error,
|
||||
this, &QmlProfilerClientManager::qmlDebugConnectionError);
|
||||
d->connectionTimer.start();
|
||||
d->tcpPort = port;
|
||||
}
|
||||
@@ -270,6 +273,17 @@ void QmlProfilerClientManager::qmlDebugConnectionClosed()
|
||||
emit connectionClosed();
|
||||
}
|
||||
|
||||
void QmlProfilerClientManager::qmlDebugConnectionError(QDebugSupport::Error error)
|
||||
{
|
||||
logState(tr("Debug connection error %1").arg(error));
|
||||
if (d->connection->isOpen()) {
|
||||
disconnectClient();
|
||||
emit connectionClosed();
|
||||
} else {
|
||||
disconnectClient();
|
||||
}
|
||||
}
|
||||
|
||||
void QmlProfilerClientManager::logState(const QString &msg)
|
||||
{
|
||||
QString state = QLatin1String("QML Profiler: ") + msg;
|
||||
|
||||
Reference in New Issue
Block a user