QmlProfiler: correctly displaying status when recording disabled

Each time a new profiling session is started, the root component
is reloaded.  If Plotter.ranges contains data, which might be
the case when not recording, the count in the root item should
not be reset to 0, and the dataAvailable flag stay to true.

Change-Id: I2a34e30a4ae7179d3675b62792dcae7b9eba0462
Reviewed-on: http://codereview.qt.nokia.com/2118
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
Christiaan Janssen
2011-07-25 16:16:09 +02:00
parent 84743eff46
commit 5003e78bef
2 changed files with 4 additions and 3 deletions

View File

@@ -37,8 +37,8 @@ import "MainView.js" as Plotter
Rectangle {
id: root
property bool dataAvailable: false;
property int eventCount: 0;
property bool dataAvailable: true;
property int eventCount: Plotter.ranges.length;
// move the cursor in the editor
signal updateCursorPosition