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 <joerg.bornemann@qt.io>
This commit is contained in:
Ulf Hermann
2016-06-02 10:31:17 +02:00
parent 3684585839
commit b4462c2553

View File

@@ -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))