summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/qml/qmlengine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/debugger/qml/qmlengine.cpp')
-rw-r--r--src/plugins/debugger/qml/qmlengine.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/debugger/qml/qmlengine.cpp b/src/plugins/debugger/qml/qmlengine.cpp
index 025125063d..95c5724e7e 100644
--- a/src/plugins/debugger/qml/qmlengine.cpp
+++ b/src/plugins/debugger/qml/qmlengine.cpp
@@ -266,8 +266,8 @@ QmlEngine::QmlEngine(const DebuggerStartParameters &startParameters, DebuggerEng
if (masterEngine)
setMasterEngine(masterEngine);
- connect(&m_adapter, SIGNAL(connectionError(QAbstractSocket::SocketError)),
- SLOT(connectionError(QAbstractSocket::SocketError)));
+ connect(&m_adapter, SIGNAL(connectionError(QDebugSupport::Error)),
+ SLOT(connectionError(QDebugSupport::Error)));
connect(&m_adapter, SIGNAL(serviceConnectionError(QString)),
SLOT(serviceConnectionError(QString)));
connect(&m_adapter, SIGNAL(connected()),
@@ -499,9 +499,9 @@ void QmlEngine::errorMessageBoxFinished(int result)
}
}
-void QmlEngine::connectionError(QAbstractSocket::SocketError socketError)
+void QmlEngine::connectionError(QDebugSupport::Error error)
{
- if (socketError == QAbstractSocket::RemoteHostClosedError)
+ if (error == QDebugSupport::RemoteClosedConnectionError)
showMessage(tr("QML Debugger: Remote host closed connection."), StatusBar);
if (!isSlaveEngine()) { // normal flow for slave engine when gdb exits