summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/declarative/debugger/qdeclarativedebugtrace.cpp6
-rw-r--r--src/declarative/debugger/qdeclarativedebugtrace_p.h1
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
};