Bug 406851 - Wrong cursor when you hover over the center of QML TextAreas
Summary: Wrong cursor when you hover over the center of QML TextAreas
Status: RESOLVED FIXED
Alias: None
Product: frameworks-qqc2-desktop-style
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-24 17:04 UTC by Björn Feber
Modified: 2019-04-25 03:02 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.58


Attachments
Right Cursor Near Border (77.85 KB, image/png)
2019-04-24 17:04 UTC, Björn Feber
Details
Wrong Cursor in Center (77.85 KB, image/png)
2019-04-24 17:05 UTC, Björn Feber
Details

Note You need to log in before you can comment on or make changes to this bug.
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