Tracing: Reset the selected type ID when clicking empty space

We want to get rid of the selection after all.

Change-Id: I3a8b1b785d9d81870e5ff368a31e1642f399a47f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Ulf Hermann
2018-05-03 14:50:47 +02:00
parent 3a379e5d1f
commit f6b791815a

View File

@@ -122,11 +122,13 @@ ScrollView {
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent
onClicked: { onClicked: {
selectedTypeId = -1;
tooltip.selectedNode = null; tooltip.selectedNode = null;
if (model !== null) if (model !== null)
model.typeSelected(-1); model.typeSelected(-1);
} }
onDoubleClicked: { onDoubleClicked: {
selectedTypeId = -1;
tooltip.selectedNode = null; tooltip.selectedNode = null;
if (model !== null) if (model !== null)
model.typeSelected(-1); model.typeSelected(-1);