QmlProfiler: displaying events only when available

Change-Id: I65414168804fb9673793409bd66deec501944c75
Reviewed-on: http://codereview.qt.nokia.com/1601
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
This commit is contained in:
Christiaan Janssen
2011-07-13 14:05:58 +02:00
committed by Aurindam Jana
parent 392377585c
commit 01cc659ffd

View File

@@ -162,6 +162,7 @@ Rectangle {
onComplete: {
root.dataAvailable = true;
Plotter.calcFps();
if (Plotter.ranges.length > 0) {
view.visible = true;
view.setRanges(Plotter.ranges);
view.updateTimeline();
@@ -170,6 +171,7 @@ Rectangle {
rangeMover.x = 0
rangeMover.opacity = 1
}
}
onClear: {
root.clearAll();