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