Propagate unused mouse press events in edit tools

Authored by muhlenpfordt on Jul 25 2018, 8:07 AM.

Description

Propagate unused mouse press events in edit tools

Summary:
If one of the edit tools Crop or Red Eye Reduction is active,
zooming by Middle-Click or Ctrl+Left/Right-Click
does not work.
This patch ignores mouse press events not used by the edit tools
itself and thereupon they are propagated to the image view.

FIXED-IN: 18.08.0

Test Plan:

  • Open Gwenview in View Mode
  • Enter Crop or Red Eye Reduction tool
  • Check if Ctrl+Left/Right-Click zoom works
  • Check if () Middle-Click zoom works
  • Check if crop tool ratio lock (Ctrl/) works

Reviewers: Gwenview, rkflx

Reviewed By: Gwenview, rkflx

Subscribers: rkflx

Differential Revision: https://phabricator.kde.org/D14324

Details

Committed
muhlenpfordtJul 25 2018, 3:05 PM
Reviewer
Gwenview
Differential Revision
D14324: Propagate unused mouse press events in edit tools
Parents
R260:08511b030a32: Reactivate size slider in Red Eye Reduction tool
Branches
Unknown
Tags
Unknown