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 <robert.loehning@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Ulf Hermann
2017-03-21 17:55:43 +01:00
parent 452a057179
commit 8e8283b342

View File

@@ -147,8 +147,14 @@ ScrollView {
} }
onMouseExited: { 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; tooltip.hoveredNode = null;
}
} }
onClicked: { onClicked: {