forked from qt-creator/qt-creator
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:
@@ -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: {
|
||||
|
Reference in New Issue
Block a user