Browse Source

even better barline position

master
Nils 2 years ago
parent
commit
3745847fca
  1. 2
      qtgui/musicstructures.py

2
qtgui/musicstructures.py

@ -397,7 +397,7 @@ class GuiTrack(QtWidgets.QGraphicsItem):
offset += 1
continue #don't draw the double barline
last = barlineTick
line = QtWidgets.QGraphicsLineItem(QtCore.QLineF(0, 0, 0, h))
line = QtWidgets.QGraphicsLineItem(QtCore.QLineF(-3, 0, -3, h)) #x1, y1, x2, y2 #give it a -3 x offset because we have a thickness of 2. Also makes block dividers easier to see.
line.setPen(pen)
line.setParentItem(self)
self.barLines.append(line)

Loading…
Cancel
Save