gui: ignore only unmodified wheelevents

This commit is contained in:
Robert Jördens 2016-03-08 15:53:27 +01:00
parent 00d4775da5
commit 41ca223c45

View File

@ -17,10 +17,10 @@ def log_level_to_name(level):
class _WheelFilter(QtCore.QObject): class _WheelFilter(QtCore.QObject):
def eventFilter(self, obj, event): def eventFilter(self, obj, event):
if event.type() == QtCore.QEvent.Wheel: if (event.type() == QtCore.QEvent.Wheel and
event.modifiers() == QtCore.Qt.NoModifier):
event.ignore() event.ignore()
return True return True
else:
return False return False