listOfLabelsAndFunctions.insert(0,(QtCore.QCoreApplication.translate("EventContextMenu","Repeat to step {} incl. to fill Row").format(potentialStep.column+1),lambda:api.patternRowRepeatFromStep(trackId,potentialStep.row,potentialStep.column)))
listOfLabelsAndFunctions.insert(0,(QtCore.QCoreApplication.translate("EventContextMenu","Repeat to step {} incl. to fill Row").format(potentialStep.column+1),lambda:api.patternRowRepeatFromStep(trackId,potentialStep.row,potentialStep.column)))
#self.parentItem.sendToEngine(callback=False) # results in a loop with callback, and in wrong data without. This is not the right place to implement immediate note feedback while editing is still going on.
defspinBoxEditingFinished(self):
@ -827,13 +831,13 @@ class PitchWidget(QtWidgets.QGraphicsProxyWidget):
defspinBoxMouseWheelEvent(self,event):
"""We cannot use spinBoxValueChanged to send mousewheel scrolling pitch changing directly
(QtCore.QCoreApplication.translate("SongStructure","Insert empty group before this one").format(measuresPerGroup),lambda:api.insertSilence(howMany=measuresPerGroup,beforeMeasureNumber=startMeasureForGroup)),
(QtCore.QCoreApplication.translate("SongStructure","Insert empty group before this one").format(measuresPerGroup),lambda:api.insertSilence(howMany=measuresPerGroup,beforeMeasureNumber=startMeasureForGroup)),
(QtCore.QCoreApplication.translate("SongStructure","Duplicate whole group including measures"),lambda:api.duplicateSwitchGroup(startMeasureForGroup,endMeasureExclusive)),
(QtCore.QCoreApplication.translate("SongStructure","Clear all group transpositions"),lambda:api.clearSwitchGroupTranspositions(startMeasureForGroup,endMeasureExclusive)),
@ -524,6 +528,11 @@ class TrackLabelEditor(QtWidgets.QGraphicsScene):
self._cachedExportDictsInOrder=[]
#Set color, otherwise it will be transparent in window managers or wayland that want that.