scanwidget: disable unmodified wheel on axis and slider

This commit is contained in:
Robert Jördens 2016-03-08 16:43:04 +01:00
parent 285979cab6
commit 59ac567048

View File

@ -559,8 +559,8 @@ class ScanWidget(QtWidgets.QWidget):
def __init__(self, zoomFactor=1.05, rangeFactor=6):
QtWidgets.QWidget.__init__(self)
slider = ScanSlider()
axis = ScanAxis(zoomFactor)
self.slider = slider = ScanSlider()
self.axis = axis = ScanAxis(zoomFactor)
zoomFitButton = QtWidgets.QPushButton("View Range")
fitViewButton = QtWidgets.QPushButton("Snap Range")
self.proxy = ScanProxy(slider, axis, rangeFactor)