diff --git a/src/plugins/debugger/qml/qmladapter.cpp b/src/plugins/debugger/qml/qmladapter.cpp index 85f429b83ecf2f74f17fc6bd2566ba2ba6d86964..2e77cfad262fde7e28c86906d60c4efabb2a31ea 100644 --- a/src/plugins/debugger/qml/qmladapter.cpp +++ b/src/plugins/debugger/qml/qmladapter.cpp @@ -50,6 +50,7 @@ QmlAdapter::QmlAdapter(DebuggerEngine *engine, QObject *parent) , m_conn(0) { + m_connectionTimer->setInterval(200); connect(m_connectionTimer, SIGNAL(timeout()), SLOT(pollInferior())); } @@ -197,7 +198,7 @@ void QmlAdapter::setMaxConnectionAttempts(int maxAttempts) } void QmlAdapter::setConnectionAttemptInterval(int interval) { - m_connectionAttemptInterval = interval; + m_connectionTimer->setInterval(interval); } } // namespace Internal diff --git a/src/plugins/debugger/qml/qmladapter.h b/src/plugins/debugger/qml/qmladapter.h index df63707dada55ffef22dd60964f3af75fd0e5fea..1def1ade698e5111dc113bc0a99f0d95e6b7d8dd 100644 --- a/src/plugins/debugger/qml/qmladapter.h +++ b/src/plugins/debugger/qml/qmladapter.h @@ -86,7 +86,6 @@ private: QTimer *m_connectionTimer; int m_connectionAttempts; int m_maxConnectionAttempts; - int m_connectionAttemptInterval; QDeclarativeDebugConnection *m_conn; diff --git a/src/plugins/debugger/qml/qmlengine.cpp b/src/plugins/debugger/qml/qmlengine.cpp index 8b3c177ab8b6a26d9cd8b28673026274f567c0ee..b1ebfb1195bbd859b1ab38e3649afeb5f68009dc 100644 --- a/src/plugins/debugger/qml/qmlengine.cpp +++ b/src/plugins/debugger/qml/qmlengine.cpp @@ -74,7 +74,7 @@ enum { MaxConnectionAttempts = 50, - ConnectionAttemptDefaultInterval = 75 + ConnectionAttemptDefaultInterval = 200 }; namespace Debugger {