Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
A
awlsim
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Merge Requests
0
Merge Requests
0
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
Container Registry
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Michael Büsch
awlsim
Commits
466bc4b7
Commit
466bc4b7
authored
Oct 28, 2018
by
Michael Büsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gui/mdi: Always consume scroll events in MDI sub windows.
Signed-off-by:
Michael Buesch
<
m@bues.ch
>
parent
f23c7e44
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
awlsim/gui/cpustate.py
awlsim/gui/cpustate.py
+7
-0
awlsim/gui/editmdiarea.py
awlsim/gui/editmdiarea.py
+7
-0
No files found.
awlsim/gui/cpustate.py
View file @
466bc4b7
...
...
@@ -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.
"""
...
...
awlsim/gui/editmdiarea.py
View file @
466bc4b7
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment