-
Notifications
You must be signed in to change notification settings - Fork 37.7k
qt: Get rid of cursor in out-of-focus labels #19210
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
Concept ACK, multiple cursors visible is wtf-level confusing. Should this be reported as an upstream issue too? |
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.
Concept ACK. Tested this approach and the one I'm suggesting. Does it make sense to have a dedicated label subclass?
This seems ugly. Ideally, if the focus returns to the label, the cursor position shouldn't be lost. |
|
Updated 4b7c953 -> 5dbe2d6 (pr19210.01 -> pr19210.02, diff):
|
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.
Code review ACK 5dbe2d6.
This change is a temporary fix of QTBUG-59514.
Updated 5dbe2d6 -> bd315eb (pr19210.02 -> pr19210.03, diff):
|
Code review ACK bd315eb. |
@laanwj can you take another look here? If you're happy with this change as-is, we can probably merge is here rather than punting to the GUI repo. We've now also got an upstream issue to refer too. |
Tested ACK bd315eb |
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
Summary: This change is a temporary fix of QTBUG-59514. This is a backport of [[bitcoin/bitcoin#19210 | core#19210]] Test Plan: `ninja all check-all` `src/qt/bitcoin-qt` I wasn't able to reproduce the bug, so I just checked that everything still works as before. I suspect this only affects some versions of Qt. Reviewers: #bitcoin_abc, majcosta Reviewed By: #bitcoin_abc, majcosta Differential Revision: https://reviews.bitcoinabc.org/D10005
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
After clicking on
QLabel
with selectable text the cursor remains forever:This PR fixes this visual bug.
Earlier attempts to fix this issue:
textInteractionFlags
forQLabel
#14577