- Disables panning of the whole scene by mousewheel if the event is not

catched earlier by an item implementing this. Test it at the empty space 
  where the auto button appears in the plot window or on the scaleItems.
  Which element does this panning by default? parents: scene or view?
This commit is contained in:
Ingo B. 2011-02-10 16:13:03 +01:00
parent 1efb60a963
commit a8260b641c
1 changed files with 3 additions and 1 deletions

View File

@ -876,7 +876,9 @@ class PlotItem(QtGui.QGraphicsWidget):
mode = False
return mode
def wheelEvent(self, ev):
# disables panning the whole scene by mousewheel
ev.accept()
#def mousePressEvent(self, ev):
#self.mousePos = array([ev.pos().x(), ev.pos().y()])