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