Prevent selection of an item in TreeWidget when user presses an eye icon

Closes #18922
This commit is contained in:
xtemp09
2025-01-19 14:35:32 -05:00
committed by Chris Hennes
parent 7ece9241bf
commit 37c47ef972
+4
View File
@@ -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;
}
}
}