forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user