QmlProfiler: Show notes in overview

Change-Id: Ie24c2c01a978640bd2925265385ff7c7b3274a41
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2014-09-26 17:15:17 +02:00
parent bac3b888fc
commit bb517a645e
2 changed files with 54 additions and 0 deletions

View File

@@ -107,6 +107,7 @@ Canvas {
offset = -1;
requestPaint();
}
onNotesChanged: notes.doPaint = true;
}
Timer {
@@ -137,10 +138,31 @@ Canvas {
Plotter.drawBindingLoops(canvas, context);
++offset;
} else {
notes.doPaint = true;
offset = -1;
}
}
Canvas {
property alias bump: canvas.bump
property bool doPaint: false
onDoPaintChanged: {
if (doPaint)
requestPaint();
}
id: notes
anchors.fill: parent
onPaint: {
if (doPaint) {
var context = (notes.context === null) ? getContext("2d") : notes.context;
context.reset();
Plotter.drawNotes(notes, context);
doPaint = false;
}
}
}
// ***** child items
MouseArea {
anchors.fill: canvas