-
Notifications
You must be signed in to change notification settings - Fork 38.7k
qt: Cleanup textInteractionFlags for QLabel
#14577
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
Conversation
Qt::TextSelectableByMouse - keep unchanged. Qt::TextSelectableByKeyboard - removed due to showing a text cursor even after leaving the label. Qt::LinksAccessibleByMouse - used only by `helpmessagedialog.ui`.
|
utACK e4f00c2.
Nice, tested this on macOS. |
|
tACK e4f00c2 There's one usage of The only other flag we use (including For reference all Only other thought is if this has some sort of effect to Accessibility, however I can't test that. |
|
I'm not sure this is a good idea—why disallow selecting by keyboard?
Exactly, might be that someone is not able to use a mouse that well, being able to tab through fields and select by keyboard could be a great help? |
In fact, someone is not able to tab through fields on master. Because those fields have not Therefore, IMO, this PR does not touch accessibility in any way, cleans up code and removes visual artifacts in GUI. |
|
Tested ACK. |
What about enabling that, then? Move in the right direction instead of the wrong one. |
bd315eb qt: Get rid of cursor in out-of-focus labels (Hennadii Stepanov) Pull request description: After clicking on `QLabel` with selectable text the cursor remains forever:  This PR fixes this visual bug. Earlier attempts to fix this issue: - #14577 - #14810 (combined with other UX feature) ACKs for top commit: promag: Code review ACK bd315eb. laanwj: Tested ACK bd315eb Tree-SHA512: 6bf89362412e5ce9a4dec6944b62fe44fc31ca49cda7f6e2eb37e847fac9dccb68bca7ac6877b19e42add2333e40d0b4265757ead105ac0a5d28f8ab43b322c3
bd315eb qt: Get rid of cursor in out-of-focus labels (Hennadii Stepanov) Pull request description: After clicking on `QLabel` with selectable text the cursor remains forever:  This PR fixes this visual bug. Earlier attempts to fix this issue: - bitcoin#14577 - bitcoin#14810 (combined with other UX feature) ACKs for top commit: promag: Code review ACK bd315eb. laanwj: Tested ACK bd315eb Tree-SHA512: 6bf89362412e5ce9a4dec6944b62fe44fc31ca49cda7f6e2eb37e847fac9dccb68bca7ac6877b19e42add2333e40d0b4265757ead105ac0a5d28f8ab43b322c3
bd315eb qt: Get rid of cursor in out-of-focus labels (Hennadii Stepanov) Pull request description: After clicking on `QLabel` with selectable text the cursor remains forever:  This PR fixes this visual bug. Earlier attempts to fix this issue: - bitcoin#14577 - bitcoin#14810 (combined with other UX feature) ACKs for top commit: promag: Code review ACK bd315eb. laanwj: Tested ACK bd315eb Tree-SHA512: 6bf89362412e5ce9a4dec6944b62fe44fc31ca49cda7f6e2eb37e847fac9dccb68bca7ac6877b19e42add2333e40d0b4265757ead105ac0a5d28f8ab43b322c3


Qt::LinksAccessibleByMouseremoved for all label not containing links.Qt::TextSelectableByKeyboardremoved for all labels due to showing a text cursor even after leaving the label (for all platforms):