Browse Source

fix z-factor regression when ereasing switches by dragging the mouse

master
Nils 4 years ago
parent
commit
bebb63c51f
  1. 4
      qtgui/songeditor.py

4
qtgui/songeditor.py

@ -35,7 +35,7 @@ _zValuesRelativeToScene = { #Only use for objects added directly to the scene, n
"barline":5,
"group" : 6,
"switch":7,
"barlineGroupHighlight":8,
"barlineGroupHighlight":9,
"playhead":90,
}
@ -258,7 +258,7 @@ class TrackStructure(QtWidgets.QGraphicsRectItem):
#self._markerLine.setParentItem(self) #incompatible with zValues. We need this relative to the scene
self.parentScene.addItem(self._markerLine)
#self._markerLine.setY(self.pos().y()) #won't work yet. We are not in the scene ourselves. We set it in mousePressEvent, before show()
self._markerLine.setZValue(_zValuesRelativeToScene["switch"])
self._markerLine.setZValue(_zValuesRelativeToScene["switch"]+1) #It is not possible to have this in front of barlines AND the switches. Barlines need to be below switches for multiplied-patterns. But we want to "erase" the switches
self._markerLine.hide()
#Semitransparent hover-switch to show which one would be activated/deactivated

Loading…
Cancel
Save