mirror of
https://github.com/huderlem/porymap.git
synced 2026-06-13 11:20:51 -05:00
Fix connections occluding events
This commit is contained in:
parent
0f814d78bd
commit
44780b2311
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user