Browse Source

better placement for block labels in block mode

master
Nils 2 years ago
parent
commit
6af5c0f27d
  1. 5
      qtgui/musicstructures.py

5
qtgui/musicstructures.py

@ -81,9 +81,12 @@ class GuiBlockHandle(QtWidgets.QGraphicsRectItem):
self.idText.setFlags(QtWidgets.QGraphicsItem.ItemIgnoresParentOpacity)
"""
if self.staticExportItem["completeDuration"] >= 3 * api.D1: #cosmetics
if self.staticExportItem["completeDuration"] >= 16 * api.D1: #cosmetics
self.startLabel = QtWidgets.QGraphicsSimpleTextItem(self.staticExportItem["name"])
self.endLabel = QtWidgets.QGraphicsSimpleTextItem(self.staticExportItem["name"] + translate("musicstructures", " end "))
elif self.staticExportItem["completeDuration"] >= 8 * api.D1: #cosmetics
self.startLabel = QtWidgets.QGraphicsSimpleTextItem(self.staticExportItem["name"])
self.endLabel = QtWidgets.QGraphicsSimpleTextItem("")
else:
self.startLabel = QtWidgets.QGraphicsSimpleTextItem("")
self.endLabel = QtWidgets.QGraphicsSimpleTextItem("")

Loading…
Cancel
Save