Commit 6a988ee8 authored by Christiaan Janssen's avatar Christiaan Janssen
Browse files

QmlProfiler: fixed bug in elapsed display when finishing trace

Change-Id: I85c376b45eb6308c4af4e80032e37379b12ef8e0
Reviewed-on: http://codereview.qt-project.org/6425


Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarKai Koehne <kai.koehne@nokia.com>
parent 7fc4de0b
......@@ -63,11 +63,15 @@ Rectangle {
hideRangeDetails();
}
function clearAll() {
function clearDisplay() {
clearData();
selectedEventIndex = -1;
canvas.requestPaint();
view.visible = false;
}
function clearAll() {
clearDisplay();
root.elapsedTime = 0;
root.updateTimer();
}
......
......@@ -61,7 +61,7 @@ Rectangle {
target: statusText
text: qsTr("No QML events recorded");
}
onCompleted: root.clearAll();
onCompleted: root.clearDisplay();
},
// running app
State {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment