@ -122,7 +122,7 @@ class MainWindow(TemplateMainWindow):
#Now all tracks and items from a loaded backend-file are created. We can setup the initial editMode and viewPort.
self.scoreView.updateMode()#hide CCs at program start and other stuff
#self.scoreView.scoreScene.grid.redrawTickGrid() #Init the grid only after everything got loaded and drawn to prevent a gap in the display. #TODO: which might be a bug. but this here works fine.
self.scoreView.scoreScene.grid.redrawTickGrid() #Init the grid only after everything got loaded and drawn to prevent a gap in the display. #TODO: which might be a bug. but this here works fine.
#There is so much going on in the engine, we never reach a save status on load.
"ccType":self.mainWindow.ui.toolBar.addWidget(ToolBarCCType(mainWindow=self.mainWindow)),#keep this at the end of the toolbar because it toggles visibility
@ -69,10 +69,10 @@ class GuiScore(QtWidgets.QGraphicsScene):
self.backColor.setNamedColor("#fdfdff")
self.setBackgroundBrush(self.backColor)
#self.grid = GuiGrid(parentScene=self)
#self.addItem(self.grid)
#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)
self.grid=GuiGrid(parentScene=self)
self.addItem(self.grid)
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)
self.cachedSceneHeight=0#set in self.redraw. Used by updateTrack to set the sceneRect
@ -100,7 +100,7 @@ class GuiScore(QtWidgets.QGraphicsScene):
fortrackinself.tracks.values():
track.updateMode(nameAsString)
#self.grid.updateMode(nameAsString)
self.grid.updateMode(nameAsString)
defmaxTrackLength(self):
ifself.tracks:
@ -310,7 +310,7 @@ class GuiScore(QtWidgets.QGraphicsScene):
Docstringthere."""
#The big structures have a fixed position at (0,0) and move its child items, like notes, internally
#Some items, like the cursor, move around, as a whole item, in the scene directly and need no stretchXCoordinates() themselves.