From 8e8283b342259de7a7dc6e9decbc1f4706c81377 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Tue, 21 Mar 2017 17:55:43 +0100 Subject: [PATCH] QmlProfiler: Keep flamegraph details window around When moving the mouse pointer out of an item the window should not disappear, so that you can reposition it then. Change-Id: Ic2fa0e41bcab5fada6c3c5fca68a5f82fcd0fc7a Task-number: QTCREATORBUG-16698 Reviewed-by: Robert Loehning Reviewed-by: Christian Kandeler --- src/plugins/qmlprofiler/qml/QmlProfilerFlameGraphView.qml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/plugins/qmlprofiler/qml/QmlProfilerFlameGraphView.qml b/src/plugins/qmlprofiler/qml/QmlProfilerFlameGraphView.qml index 88f4eb133f7..2de3ec9422c 100644 --- a/src/plugins/qmlprofiler/qml/QmlProfilerFlameGraphView.qml +++ b/src/plugins/qmlprofiler/qml/QmlProfilerFlameGraphView.qml @@ -147,8 +147,14 @@ ScrollView { } onMouseExited: { - if (tooltip.hoveredNode === flamegraphItem) + if (tooltip.hoveredNode === flamegraphItem) { + // Keep the window around until something else is hovered or selected. + if (tooltip.selectedNode === null + || tooltip.selectedNode.typeId !== root.selectedTypeId) { + tooltip.selectedNode = flamegraphItem; + } tooltip.hoveredNode = null; + } } onClicked: {