Browse Source

Barlines more visible

master
Nils 2 months ago
parent
commit
a3464a505c
  1. 8
      qtgui/musicstructures.py

8
qtgui/musicstructures.py

@ -383,6 +383,13 @@ class GuiTrack(QtWidgets.QGraphicsItem):
#if barlinesTickList[0] == 0: #happens when there is a metrical instruction at tick 0.
# del barlinesTickList[0]
#Pen for the borders
pen = QtGui.QPen()
pen.setWidth(2)
pen.setColor(QtGui.QColor("black"))
last = None
offset = 0
for barnumber, barlineTick in enumerate(barlinesTickList):
@ -391,6 +398,7 @@ class GuiTrack(QtWidgets.QGraphicsItem):
continue #don't draw the double barline
last = barlineTick
line = QtWidgets.QGraphicsLineItem(QtCore.QLineF(0, 0, 0, h))
line.setPen(pen)
line.setParentItem(self)
self.barLines.append(line)
line.setPos(barlineTick / constantsAndConfigs.ticksToPixelRatio, -2*constantsAndConfigs.stafflineGap)

Loading…
Cancel
Save