Commit 466bc4b7 authored by Michael Büsch's avatar Michael Büsch

gui/mdi: Always consume scroll events in MDI sub windows.

Signed-off-by: Michael Büsch's avatarMichael Buesch <m@bues.ch>
parent f23c7e44
......@@ -1354,6 +1354,13 @@ class StateMdiSubWindow(QMdiSubWindow):
QMdiSubWindow.moveEvent(self, moveEvent)
self.moved.emit(self)
def wheelEvent(self, ev):
QMdiSubWindow.wheelEvent(self, ev)
# Always accept the wheel event.
# This avoids forwarding it to the parent MDI area,
# if the scroll happened in this MDI sub window.
ev.accept()
def getWinSettings(self):
"""Get the GuiCpuStateWindowSettings object for this CPU view window.
"""
......
......@@ -460,6 +460,13 @@ class EditMdiSubWindow(QMdiSubWindow):
self.closed.emit(self)
QMdiSubWindow.closeEvent(self, ev)
def wheelEvent(self, ev):
QMdiSubWindow.wheelEvent(self, ev)
# Always accept the wheel event.
# This avoids forwarding it to the parent MDI area,
# if the scroll happened in this MDI sub window.
ev.accept()
def updateTitle(self):
pass
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment