Fix connections occluding events

This commit is contained in:
GriffinR 2023-01-24 03:31:04 -05:00
parent 0f814d78bd
commit 44780b2311

View file

@ -76,7 +76,7 @@ bool ConnectionPixmapItem::getEditable() {
void ConnectionPixmapItem::updateHighlight(bool selected) {
bool editable = this->getEditable();
int zValue = (selected || !editable) ? 0 : -1;
int zValue = (selected || !editable) ? -1 : -2;
qreal opacity = (selected || !editable) ? 1 : 0.75;
this->setZValue(zValue);
this->render(opacity);