QmlProfiler: Remove getState() methods

A numerical representation of "state" is not so useful after all.

Change-Id: I7fc3ae08a2fd44000b5543f4ba25730a8d79358d
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
Ulf Hermann
2014-07-08 12:49:56 +02:00
parent 5ceb0b68d6
commit 1f46fca305
5 changed files with 1 additions and 20 deletions

View File

@@ -76,12 +76,6 @@ Rectangle {
Connections {
target: qmlProfilerModelProxy
onStateChanged: {
// Clear if model is empty.
if (qmlProfilerModelProxy.getState() === 0)
root.clear();
backgroundMarks.requestPaint()
}
onDataAvailable: {
view.clearData();
zoomControl.setRange(qmlProfilerModelProxy.traceStartTime(),
@@ -89,6 +83,7 @@ Rectangle {
qmlProfilerModelProxy.traceDuration()/10);
view.requestPaint();
}
onStateChanged: backgroundMarks.requestPaint()
onExpandedChanged: backgroundMarks.requestPaint()
onRowHeightChanged: backgroundMarks.requestPaint()
}