-
-
Notifications
You must be signed in to change notification settings - Fork 419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugfix: force a redraw to ensure highlight shows when Points are select-all selected #5771
Bugfix: force a redraw to ensure highlight shows when Points are select-all selected #5771
Conversation
Codecov Report
@@ Coverage Diff @@
## main #5771 +/- ##
==========================================
+ Coverage 89.85% 89.87% +0.01%
==========================================
Files 609 610 +1
Lines 52055 52121 +66
==========================================
+ Hits 46775 46842 +67
+ Misses 5280 5279 -1
... and 21 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems straight forward!
…ct-all selected (#5771) # Fixes/Closes Bug discussed here: #5748 (comment) # Description If you are using the + tool or select tool and use the select-all keybind, then the points are not visually selected. If you use the + tool and use select-all then toggle to the selection tool, then they will be visually selected. If you use the select tool, then they never appear to get visually selected. This is because the keybind calls `layer._set_highlight()` but doesn't force a redraw using `force=True`. This PR uses `layer._set_highlight(force=True)` to ensure that a redraw happens, so the visual selection occurs. # References Discussion starts here: #5748 (comment) ## Type of change <!-- Please delete options that are not relevant. --> - [x] Bug-fix (non-breaking change which fixes an issue) # How has this been tested? <!-- Please describe the tests that you ran to verify your changes. --> - [ ] example: the test suite for my feature covers cases x, y, and z - [x] example: all tests pass with my change - [ ] example: I check if my changes works with both PySide and PyQt backends as there are small differences between the two Qt bindings. ## Final checklist: - [x] My PR is the minimum possible work for the desired functionality
…ct-all selected (#5771) # Fixes/Closes Bug discussed here: #5748 (comment) # Description If you are using the + tool or select tool and use the select-all keybind, then the points are not visually selected. If you use the + tool and use select-all then toggle to the selection tool, then they will be visually selected. If you use the select tool, then they never appear to get visually selected. This is because the keybind calls `layer._set_highlight()` but doesn't force a redraw using `force=True`. This PR uses `layer._set_highlight(force=True)` to ensure that a redraw happens, so the visual selection occurs. # References Discussion starts here: #5748 (comment) ## Type of change <!-- Please delete options that are not relevant. --> - [x] Bug-fix (non-breaking change which fixes an issue) # How has this been tested? <!-- Please describe the tests that you ran to verify your changes. --> - [ ] example: the test suite for my feature covers cases x, y, and z - [x] example: all tests pass with my change - [ ] example: I check if my changes works with both PySide and PyQt backends as there are small differences between the two Qt bindings. ## Final checklist: - [x] My PR is the minimum possible work for the desired functionality
…ct-all selected (#5771) # Fixes/Closes Bug discussed here: #5748 (comment) # Description If you are using the + tool or select tool and use the select-all keybind, then the points are not visually selected. If you use the + tool and use select-all then toggle to the selection tool, then they will be visually selected. If you use the select tool, then they never appear to get visually selected. This is because the keybind calls `layer._set_highlight()` but doesn't force a redraw using `force=True`. This PR uses `layer._set_highlight(force=True)` to ensure that a redraw happens, so the visual selection occurs. # References Discussion starts here: #5748 (comment) ## Type of change <!-- Please delete options that are not relevant. --> - [x] Bug-fix (non-breaking change which fixes an issue) # How has this been tested? <!-- Please describe the tests that you ran to verify your changes. --> - [ ] example: the test suite for my feature covers cases x, y, and z - [x] example: all tests pass with my change - [ ] example: I check if my changes works with both PySide and PyQt backends as there are small differences between the two Qt bindings. ## Final checklist: - [x] My PR is the minimum possible work for the desired functionality
…ct-all selected (#5771) # Fixes/Closes Bug discussed here: #5748 (comment) # Description If you are using the + tool or select tool and use the select-all keybind, then the points are not visually selected. If you use the + tool and use select-all then toggle to the selection tool, then they will be visually selected. If you use the select tool, then they never appear to get visually selected. This is because the keybind calls `layer._set_highlight()` but doesn't force a redraw using `force=True`. This PR uses `layer._set_highlight(force=True)` to ensure that a redraw happens, so the visual selection occurs. # References Discussion starts here: #5748 (comment) ## Type of change <!-- Please delete options that are not relevant. --> - [x] Bug-fix (non-breaking change which fixes an issue) # How has this been tested? <!-- Please describe the tests that you ran to verify your changes. --> - [ ] example: the test suite for my feature covers cases x, y, and z - [x] example: all tests pass with my change - [ ] example: I check if my changes works with both PySide and PyQt backends as there are small differences between the two Qt bindings. ## Final checklist: - [x] My PR is the minimum possible work for the desired functionality
Fixes/Closes
Bug discussed here: #5748 (comment)
Description
If you are using the + tool or select tool and use the select-all keybind, then the points are not visually selected.
If you use the + tool and use select-all then toggle to the selection tool, then they will be visually selected.
If you use the select tool, then they never appear to get visually selected.
This is because the keybind calls
layer._set_highlight()
but doesn't force a redraw usingforce=True
.This PR uses
layer._set_highlight(force=True)
to ensure that a redraw happens, so the visual selection occurs.References
Discussion starts here:
#5748 (comment)
Type of change
How has this been tested?
as there are small differences between the two Qt bindings.
Final checklist: