Browse Source

fix qt float int regression

master
Nils 3 years ago
parent
commit
8acd724072
  1. 2
      qtgui/cursor.py

2
qtgui/cursor.py

@ -154,7 +154,7 @@ class Playhead(QtWidgets.QGraphicsLineItem):
cursorViewPosX = scenePos.x() #the cursor position in View coordinates
width = self.parentScoreScene.parentView.geometry().width()
if cursorViewPosX <= 0 or cursorViewPosX >= width: #"pageflip"
self.parentScoreScene.parentView.horizontalScrollBar().setValue(x * constantsAndConfigs.zoomFactor)
self.parentScoreScene.parentView.horizontalScrollBar().setValue(int(x * constantsAndConfigs.zoomFactor))
def _Deprecated__ScrollingVariant___setCursorPosition(self, tickindex):

Loading…
Cancel
Save