Commit b4462c25 authored by Ulf Hermann's avatar Ulf Hermann
Browse files

QmlProfiler: Don't consider invisible flame graph items selected



Technically they can still be selected after hiding the category they
belong to, but we shouldn't show the details window then.

Change-Id: I4f667a397dbe258a302e65b1fb8e4e6eb723c441
Reviewed-by: Joerg Bornemann's avatarJoerg Bornemann <joerg.bornemann@qt.io>
parent 36845858
......@@ -71,6 +71,7 @@ ScrollView {
property bool isBindingLoop: parent.checkBindingLoop(typeId)
property int level: parent.level + (rangeTypeVisible ? 1 : 0)
property bool isSelected: typeId !== -1 && typeId === root.selectedTypeId
&& rangeTypeVisible
property bool rangeTypeVisible:
root.visibleRangeTypes & (1 << FlameGraph.data(FlameGraphModel.RangeTypeRole))
......
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