Qt::LinksAccessibleByMouse
removed for all label not containing links.
Qt::TextSelectableByKeyboard
removed for all labels due to showing a text cursor even after leaving the label (for all platforms):
textInteractionFlags
for QLabel
#14577
Qt::LinksAccessibleByMouse
removed for all label not containing links.
Qt::TextSelectableByKeyboard
removed for all labels due to showing a text cursor even after leaving the label (for all platforms):
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.
showing a text cursor even after leaving the label
Nice, tested this on macOS.
tACK e4f00c2
There’s one usage of LinksAccessibleByMouse
left in helpmessagedialog.ui, because the help message dialog is used to display the About
screen, which contains clickable links.
The only other flag we use (including TextSelectableByMouse
) is a single instance of NoTextInteraction
in debugwindow.ui.
For reference all Qt::TextInteractionFlags
are listed here.
Only other thought is if this has some sort of effect to Accessibility, however I can’t test that.
Before:
After:
I’m not sure this is a good idea—why disallow selecting by keyboard?
Only other thought is if this has some sort of effect to Accessibility, however I can’t test that.
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?
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 Qt::TabFocus
flag set.
Therefore, IMO, this PR does not touch accessibility in any way, cleans up code and removes visual artifacts in GUI.
In fact, someone is not able to tab through fields on master. Because those fields have not Qt::TabFocus flag set.
What about enabling that, then? Move in the right direction instead of the wrong one.