[ENH] Combo Box Search Filter#3014
Conversation
|
Great prototype, works fast! Thanks. On mouse over the fields, the selection (on mac, the coloring of the line indicating current position in the list) does not change. Following is an example of how this works for selection of linkage: and how the line for Zzz3 is not marked with blue for selection of annotation: Filter looks like an text entry box. When I first open the menu, I wanted to click somewhere inside the box to activate it and have the caret show, but action closes the pull down menu. I understand that the problem is with deciding which Qt widget is in focus. @markotoplak, @astaric, can you look at this and comment. |
Codecov Report
@@ Coverage Diff @@
## master #3014 +/- ##
==========================================
+ Coverage 82.64% 82.71% +0.06%
==========================================
Files 342 342
Lines 59016 59062 +46
==========================================
+ Hits 48774 48851 +77
+ Misses 10242 10211 -31 |
7445f41 to
0385d51
Compare
0385d51 to
3bdbec5
Compare
3bdbec5 to
ea1f83b
Compare
|
This works really well for me. Something we could merge soon? |
34c5fa3 to
daec31b
Compare
thocevar
left a comment
There was a problem hiding this comment.
Works great for me as well. We have to start using this component in other widgets to discover and fix any hidden bugs.
Orange/widgets/utils/combobox.py
Outdated
|
|
||
| Behaves like a 'windows' styled combo box (i.e. | ||
| `styleHint(SH_ComboBoxPopup)` is False, but | ||
| the |
There was a problem hiding this comment.
I suppose this should continue.
Orange/widgets/utils/combobox.py
Outdated
| return False | ||
| elif key in (Qt.Key_End, Qt.Key_Home) \ | ||
| and not modifiers & Qt.ControlModifier: | ||
| return False |
There was a problem hiding this comment.
I would prefer to have home/end key jump around on the search line when editing the query.
|
It is indeed great. |
Segfaults on headless xcb.
Could segfault if the tested popup loses focus (is hidden and deleted) due to external factors. It is now run without any delay in the mouse event dispatch.
The popup does not appear to hide automatically on windows when a mouse button is pressed outside the popup window.
Remove special casing Home/End key filter, dispatch directly to the line edit with no event propagation up the parent chain.
daec31b to
8b3e8a1
Compare
|
Can you please test Home/End keys again to ensure they correspond to standard platform behavior. |
|
Home/End keys work on windows. |
|
Works on linux too. Looks good to merge. |


Issue
Implements gh-2972
Description of changes
Includes