-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gui_events: get rid of the nativeButtonId callback and use MouseButtons
We had a problem where some platform (xcb, wayland) would send native button code and (win32, cocoa) would send the converted MouseButton values. The Mouse*Event::button getter was doing a conversion from xcb to mouseButton and hover time a nativeButtonId() getter was added likely to work around values not being correct on Windows/Mac. This patch makes it so that xcb, wayland now send converted MouseButton values like win32 and cocoa so that we can get rid of any conversion in the button() getter and remove nativeButtonId() entirely. The button() getter is now renamed buttons() and returns a MouseButtons flag. Change-Id: I5c6cb8b27bfbde1e532c86230c8c792c9e22e66e Reviewed-on: https://codereview.kdab.com/c/kdab/kdutils/+/132419 Reviewed-by: Miłosz Kosobucki <[email protected]> Tested-by: Continuous Integration <[email protected]>
- Loading branch information
Showing
12 changed files
with
89 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.