@ -205,8 +205,12 @@ class GuiTrack(QtWidgets.QGraphicsItem):
self.ccPaths={}# ccNumber0-127:PathItem. Empty for a new track. We only create ccPaths with the first ccBlock. Creation and handling is done in GuiScore, starting with syncCCsToBackend.
@ -77,8 +77,6 @@ class GuiScore(QtWidgets.QGraphicsScene):
self.grid.setPos(0,-20*constantsAndConfigs.stafflineGap)#this is more calculation than simply using self.yStart, and might require manual adjustment in the future, but at least it guarantees the grid matches the staffline positions
self.grid.setZValue(-50)
#All Cursors
self.cursor=Cursor()
self.addItem(self.cursor)
@ -108,6 +106,8 @@ class GuiScore(QtWidgets.QGraphicsScene):
self.grid.updateMode(nameAsString)
self.reactToHorizontalScroll(0)#once force all block mode track names into the center. We cannot do this in init because the tracks are not ready by then. This assumes we always start the program in notation mode
api.callbacks.setCursor.append(self.centerOnCursor)#returns a dict
self._lastSavedMode=None#CC, Blocks, Notes. for self.updateMode
@ -88,7 +89,6 @@ class ScoreView(QtWidgets.QGraphicsView):
self.setStyleSheet(style)
defwheelEvent(self,event):
ifQtWidgets.QApplication.keyboardModifiers()in(QtCore.Qt.ControlModifier,QtCore.Qt.ControlModifier|QtCore.Qt.ShiftModifier):#a workaround for a qt bug. see score.wheelEvent docstring.
event.ignore()#do not send to scene, but tell the mainWindow to use it.