QmlProfiler: Centralize redrawing of custom canvas

Don't handle redraw events in QML anymore and instead trigger a redraw
on geometryChange as well as componentComplete from C++. This reduces
redundant code and glitches from forgotten QML event handlers.

Change-Id: I0eadfb54cf8e392152c4d91b83c874b37b1aca96
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
Ulf Hermann
2013-11-20 15:14:17 +01:00
parent c28689e3af
commit acba504a53
4 changed files with 8 additions and 26 deletions

View File

@@ -38,17 +38,6 @@ Canvas2D {
property real endTime : 0
property real timePerPixel: 0
Component.onCompleted: {
requestRedraw();
}
onWidthChanged: {
requestRedraw();
}
onHeightChanged: {
requestRedraw();
}
Connections {
target: zoomControl
onRangeChanged: {