#super().mousePressEvent(event) #with this in mouseMoveEvent does not work. IIRC because we do not set the movableFlag
@ -1235,6 +1236,7 @@ class TrackLabel(QtWidgets.QGraphicsRectItem):
defmouseReleaseEvent(self,event):
newIndex=self.yPos2trackIndex(self.parentTrackLabel.y())#we need to save that first, right after this we reset the position
self.parentTrackLabel.setPos(self._posBeforeMove)#In case the block was moved to a position where no track is (below the tracks) we just reset the graphics before anything happens. The user will never see this really
#super().mousePressEvent(event) #with this in mouseMoveEvent does not work. IIRC because we do not set the movableFlag
defmouseReleaseEvent(self,event):
newIndex=self.yPos2trackIndex(self.parentGroupLabel.y())#we need to save that first, right after this we reset the position
self.parentGroupLabel.setPos(self._posBeforeMove)#In case the block was moved to a position where no track is (below the tracks) we just reset the graphics before anything happens. The user will never see this really