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

Closes #18922
This commit is contained in:
xtemp09
2025-01-10 20:40:14 +07:00
committed by Chris Hennes
parent 7ece9241bf
commit 37c47ef972

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;
}
}
}