diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2011-01-17 00:36:45 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2011-01-25 00:46:39 (GMT) |
commit | 1873b12eb8f5175aa852341a7055add77b6fcc80 (patch) | |
tree | 6c9fe0af04fa864961511a15aeddd103a40fc4e7 /src/declarative | |
parent | b36859acae472916c35ac31174c8230543d900ab (diff) | |
download | Qt-1873b12eb8f5175aa852341a7055add77b6fcc80.zip Qt-1873b12eb8f5175aa852341a7055add77b6fcc80.tar.gz Qt-1873b12eb8f5175aa852341a7055add77b6fcc80.tar.bz2 |
Add "Complete" message for tracing.
Diffstat (limited to 'src/declarative')
-rw-r--r-- | src/declarative/debugger/qdeclarativedebugtrace.cpp | 6 | ||||
-rw-r--r-- | src/declarative/debugger/qdeclarativedebugtrace_p.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/declarative/debugger/qdeclarativedebugtrace.cpp b/src/declarative/debugger/qdeclarativedebugtrace.cpp index cdf0001..9fa1f5b 100644 --- a/src/declarative/debugger/qdeclarativedebugtrace.cpp +++ b/src/declarative/debugger/qdeclarativedebugtrace.cpp @@ -165,6 +165,12 @@ void QDeclarativeDebugTrace::sendMessages() for (int i = 0; i < m_data.count(); ++i) sendMessage(m_data.at(i).toByteArray()); m_data.clear(); + + //indicate completion + QByteArray data; + QDataStream ds(&data, QIODevice::WriteOnly); + ds << (qint64)-1 << (int)Complete; + sendMessage(data); } } diff --git a/src/declarative/debugger/qdeclarativedebugtrace_p.h b/src/declarative/debugger/qdeclarativedebugtrace_p.h index 008c59e..39268fe 100644 --- a/src/declarative/debugger/qdeclarativedebugtrace_p.h +++ b/src/declarative/debugger/qdeclarativedebugtrace_p.h @@ -70,6 +70,7 @@ public: RangeStart, RangeData, RangeEnd, + Complete, MaximumMessage }; |