Prevent selection of an item in TreeWidget when user presses an eye icon
Closes #18922
This commit is contained in:
@@ -1750,6 +1750,10 @@ void TreeWidget::mousePressEvent(QMouseEvent* event)
|
||||
visible = obj->Visibility.getValue();
|
||||
obj->Visibility.setValue(!visible);
|
||||
}
|
||||
|
||||
// to prevent selection of the item via QTreeWidget::mousePressEvent
|
||||
event->accept();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user