From b4462c25535aec69b1fd3e4a6d5bd78a8fc8268b Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Thu, 2 Jun 2016 10:31:17 +0200 Subject: [PATCH] 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 --- src/plugins/qmlprofiler/qml/FlameGraphView.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/qmlprofiler/qml/FlameGraphView.qml b/src/plugins/qmlprofiler/qml/FlameGraphView.qml index 7a2e63c1b1c..b1df306eecc 100644 --- a/src/plugins/qmlprofiler/qml/FlameGraphView.qml +++ b/src/plugins/qmlprofiler/qml/FlameGraphView.qml @@ -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))