QmlProfiler: read trace when application ended by the user

This patch avoids showing the "use the stop button" if the
application dies but the trace data was sent in time.

Note: with the current implementation in Qt5, the application
sometimes closes before all data could be sent.  That happens
with any non-trivial qml application.

Change-Id: Ie7b1568b2d69320d1887587dccac40a4b4d4d788
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
This commit is contained in:
Christiaan Janssen
2012-02-15 17:26:41 +01:00
parent 1fca414997
commit 1322a73efd
7 changed files with 37 additions and 2 deletions

View File

@@ -77,6 +77,8 @@ Rectangle {
signal changeToolTip(string text)
signal updateVerticalScroll(int newPosition)
property bool applicationDied : false
// ***** connections with external objects
Connections {
target: zoomControl
@@ -149,6 +151,7 @@ Rectangle {
function clearData() {
view.clearData();
dataAvailable = false;
applicationDied = false;
eventCount = 0;
hideRangeDetails();
selectionRangeMode = false;