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