forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
@@ -86,7 +86,6 @@ private:
|
||||
QTimer *m_connectionTimer;
|
||||
int m_connectionAttempts;
|
||||
int m_maxConnectionAttempts;
|
||||
int m_connectionAttemptInterval;
|
||||
|
||||
QDeclarativeDebugConnection *m_conn;
|
||||
|
||||
|
@@ -74,7 +74,7 @@
|
||||
|
||||
enum {
|
||||
MaxConnectionAttempts = 50,
|
||||
ConnectionAttemptDefaultInterval = 75
|
||||
ConnectionAttemptDefaultInterval = 200
|
||||
};
|
||||
|
||||
namespace Debugger {
|
||||
|
Reference in New Issue
Block a user