diff options
author | Jyri Tahtela <jyri.tahtela@nokia.com> | 2011-05-13 11:30:46 (GMT) |
---|---|---|
committer | Jyri Tahtela <jyri.tahtela@nokia.com> | 2011-05-13 11:30:46 (GMT) |
commit | 50ea2454c0ad9b28be6dd5125c74466f0f96d16a (patch) | |
tree | 610e8b4852bca7d23ec5c4b9937a119eed96a124 /src/declarative/debugger/qdeclarativedebugtrace.cpp | |
parent | 0f750aec4507fffc06acea46a513c6d374564d6a (diff) | |
parent | a80130b07c5b8ee4b06eabbceb65eb23d4d4602e (diff) | |
download | Qt-50ea2454c0ad9b28be6dd5125c74466f0f96d16a.zip Qt-50ea2454c0ad9b28be6dd5125c74466f0f96d16a.tar.gz Qt-50ea2454c0ad9b28be6dd5125c74466f0f96d16a.tar.bz2 |
Merge remote-tracking branch 'qt/4.8'
Conflicts:
src/s60installs/eabi/QtOpenGLu.def
Diffstat (limited to 'src/declarative/debugger/qdeclarativedebugtrace.cpp')
-rw-r--r-- | src/declarative/debugger/qdeclarativedebugtrace.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/declarative/debugger/qdeclarativedebugtrace.cpp b/src/declarative/debugger/qdeclarativedebugtrace.cpp index 6f28736..edbbe78 100644 --- a/src/declarative/debugger/qdeclarativedebugtrace.cpp +++ b/src/declarative/debugger/qdeclarativedebugtrace.cpp @@ -65,9 +65,14 @@ QByteArray QDeclarativeDebugData::toByteArray() const QDeclarativeDebugTrace::QDeclarativeDebugTrace() : QDeclarativeDebugService(QLatin1String("CanvasFrameRate")), - m_enabled(false), m_deferredSend(true) + m_enabled(false), m_deferredSend(true), m_messageReceived(false) { m_timer.start(); + if (status() == Enabled) { + // wait for first message indicating whether to trace or not + while (!m_messageReceived) + waitForMessage(); + } } void QDeclarativeDebugTrace::addEvent(EventType t) @@ -213,6 +218,8 @@ void QDeclarativeDebugTrace::messageReceived(const QByteArray &message) stream >> m_enabled; + m_messageReceived = true; + if (!m_enabled) sendMessages(); } |