Commit 8e8283b3 authored by Ulf Hermann's avatar Ulf Hermann

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: default avatarRobert Loehning <robert.loehning@qt.io>
Reviewed-by: Christian Kandeler's avatarChristian Kandeler <christian.kandeler@qt.io>
parent 452a0571
......@@ -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: {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment