Qml Debugger: set the internal on the poll timer.

(Else, we do do not have enough time to start the observer)
This commit is contained in:
Olivier Goffart
2010-08-16 14:19:55 +02:00
parent 0b72a9efab
commit 9aa64498f4
3 changed files with 3 additions and 3 deletions

View File

@@ -50,6 +50,7 @@ QmlAdapter::QmlAdapter(DebuggerEngine *engine, QObject *parent)
, m_conn(0) , m_conn(0)
{ {
m_connectionTimer->setInterval(200);
connect(m_connectionTimer, SIGNAL(timeout()), SLOT(pollInferior())); connect(m_connectionTimer, SIGNAL(timeout()), SLOT(pollInferior()));
} }
@@ -197,7 +198,7 @@ void QmlAdapter::setMaxConnectionAttempts(int maxAttempts)
} }
void QmlAdapter::setConnectionAttemptInterval(int interval) void QmlAdapter::setConnectionAttemptInterval(int interval)
{ {
m_connectionAttemptInterval = interval; m_connectionTimer->setInterval(interval);
} }
} // namespace Internal } // namespace Internal

View File

@@ -86,7 +86,6 @@ private:
QTimer *m_connectionTimer; QTimer *m_connectionTimer;
int m_connectionAttempts; int m_connectionAttempts;
int m_maxConnectionAttempts; int m_maxConnectionAttempts;
int m_connectionAttemptInterval;
QDeclarativeDebugConnection *m_conn; QDeclarativeDebugConnection *m_conn;

View File

@@ -74,7 +74,7 @@
enum { enum {
MaxConnectionAttempts = 50, MaxConnectionAttempts = 50,
ConnectionAttemptDefaultInterval = 75 ConnectionAttemptDefaultInterval = 200
}; };
namespace Debugger { namespace Debugger {