forked from qt-creator/qt-creator
QmlProfiler: Show notes in overview
Change-Id: Ie24c2c01a978640bd2925265385ff7c7b3274a41 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user