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