Bug 406851

Summary: Wrong cursor when you hover over the center of QML TextAreas
Product: [Frameworks and Libraries] frameworks-qqc2-desktop-style Reporter: Björn Feber <bfeber>
Component: generalAssignee: Marco Martin <notmart>
Status: RESOLVED FIXED    
Severity: normal CC: kde, nate
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 5.58
Attachments: Right Cursor Near Border
Wrong Cursor in Center

Description Björn Feber 2019-04-24 17:04:58 UTC
Created attachment 119610 [details]
Right Cursor Near Border

SUMMARY
If you hover over the center of QML TextAreas you get the normal cursor, but if you go near the TextArea border it uses the correct cursor.

STEPS TO REPRODUCE
1. Hover over the center of a QML TextArea (for example in the Colors KCM)

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.15.80
KDE Frameworks Version: 5.58.0
Qt Version: 5.12.0
Comment 1 Björn Feber 2019-04-24 17:05:17 UTC
Created attachment 119611 [details]
Wrong Cursor in Center
Comment 2 David Edmundson 2019-04-24 17:11:13 UTC
Regression from someone putting a mousearea on the label
Comment 3 David Edmundson 2019-04-24 20:47:02 UTC
Git commit 06ea48cd5d4aab3a6cfb9542ab4378221a4cdd45 by David Edmundson.
Committed on 24/04/2019 at 20:46.
Pushed by davidedmundson into branch 'master'.

Avoid nesting Controls in TextField

Summary:
Label now has an extra mousearea conflicting with TextField's mouse
area.

Given we're in the overriding font and colour anyway, we may as well use
Text directly to resolve the bug.

It also saves creating an unused Accessiblity attached object.

One extra property is copied from our Label control for complete parity.

Test Plan: Moved the mouse about in systemsettings

Reviewers: #plasma

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D20792

M  +5    -1    org.kde.desktop/TextField.qml

https://commits.kde.org/qqc2-desktop-style/06ea48cd5d4aab3a6cfb9542ab4378221a4cdd45