From 64288955f0ae489789d5f010af76758b45ffde5e Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Wed, 22 Nov 2017 10:52:17 +0100 Subject: [PATCH] FlameGraph: Silence some warnings Apparently those anchors get evaluated before the parent-child relationship is established. Change-Id: I182a7760f3f638bd416af707dff092025d40a9b6 Reviewed-by: Christian Kandeler --- src/libs/flamegraph/qml/FlameGraphDelegate.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libs/flamegraph/qml/FlameGraphDelegate.qml b/src/libs/flamegraph/qml/FlameGraphDelegate.qml index 31252290aa2..384ec73bfe5 100644 --- a/src/libs/flamegraph/qml/FlameGraphDelegate.qml +++ b/src/libs/flamegraph/qml/FlameGraphDelegate.qml @@ -52,9 +52,9 @@ Item { color: Qt.hsla((level % 12) / 72, 0.9 + Math.random() / 10, 0.45 + Math.random() / 10, 0.9 + Math.random() / 10); height: itemHeight; - anchors.left: parent.left - anchors.right: parent.right - anchors.bottom: parent.bottom + anchors.left: flamegraphItem.left + anchors.right: flamegraphItem.right + anchors.bottom: flamegraphItem.bottom FlameGraphText { id: text