Skip to content
Commit 20ff8087 authored by Peter Mühlenpfordt's avatar Peter Mühlenpfordt
Browse files

Propagate unused mouse wheel events in edit tools

Summary:
If an edit tool like `Crop` or `Red Eye Reduction` is active, zooming
and panning by mouse wheel does not work. This is caused by the
`QEvent::accepted` flag set to `true` by default and therefore not
propagating the event.
This patch clears the `accepted` flag for mouse wheel events until
a subclass of `AbstractRasterImageViewTool` will accept wheel events
by itself.

FIXED-IN: 18.08.0

Test Plan:
# Open Gwenview in View Mode
# Enter `Crop` or `Red Eye Reduction` tool
# Check if {key Ctrl wheel} zooming works
# Check if panning with {key wheel}/{key Alt wheel} works

Reviewers: #gwenview, rkflx

Reviewed By: #gwenview, rkflx

Subscribers: rkflx

Differential Revision: https://phabricator.kde.org/D14286
parent 1ce062a4
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