aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/qmlprofiler/qml/TimeMarks.qml
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/qmlprofiler/qml/TimeMarks.qml')
-rw-r--r--plugins/qmlprofiler/qml/TimeMarks.qml17
1 files changed, 9 insertions, 8 deletions
diff --git a/plugins/qmlprofiler/qml/TimeMarks.qml b/plugins/qmlprofiler/qml/TimeMarks.qml
index 431a54914e..977e733e20 100644
--- a/plugins/qmlprofiler/qml/TimeMarks.qml
+++ b/plugins/qmlprofiler/qml/TimeMarks.qml
@@ -129,15 +129,16 @@ Canvas2D {
// separators
var cumulatedHeight = 0;
- var modelIndex = 0;
- for (var i=0; i<labels.rowCount; i++) {
- cumulatedHeight += root.singleRowHeight * qmlProfilerModelProxy.categoryDepth(modelIndex, i);
+ for (var modelIndex = 0; modelIndex < qmlProfilerModelProxy.modelCount(); modelIndex++) {
+ for (var i=0; i<qmlProfilerModelProxy.categoryCount(modelIndex); i++) {
+ cumulatedHeight += root.singleRowHeight * qmlProfilerModelProxy.categoryDepth(modelIndex, i);
- ctxt.strokeStyle = "#B0B0B0";
- ctxt.beginPath();
- ctxt.moveTo(0, cumulatedHeight);
- ctxt.lineTo(width, cumulatedHeight);
- ctxt.stroke();
+ ctxt.strokeStyle = "#B0B0B0";
+ ctxt.beginPath();
+ ctxt.moveTo(0, cumulatedHeight);
+ ctxt.lineTo(width, cumulatedHeight);
+ ctxt.stroke();
+ }
}
// bottom