Bug 479968

Summary: At 100% scale, cursor size preview can escape the combo box bounds
Product: [Applications] systemsettings Reporter: guimarcalsilva
Component: kcm_cursorthemeAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: fanzhuyifan, nate
Priority: NOR Keywords: qt6
Version: master   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In: 6.0
Attachments: New cursor sizes don't fit combo box

Description guimarcalsilva 2024-01-18 00:59:49 UTC
Created attachment 164994 [details]
New cursor sizes don't fit combo box

SUMMARY
Mouse size preview can escape the combo box bounds. Check the attached screenshot for details.

STEPS TO REPRODUCE
1. Open kcm_cursortheme
2. Click on the "Size" combo box

OBSERVED RESULT
Big previews escape the combo box 

EXPECTED RESULT
The size combo box should be wider to accommodate bigger previews

SOFTWARE/OS VERSIONS
KDE Plasma Version: 6.0.80
KDE Frameworks Version: 5.249.0
Qt Version: 6.6.1
Comment 1 Nate Graham 2024-01-18 20:12:46 UTC
Can reproduce only with a scale factor of 100%. When using any other scale factor (testes 110%, 200%, and 225%), I can't reproduce the issue.
Comment 2 fanzhuyifan 2024-01-19 00:27:35 UTC
I see this with scaling factors other then 100%. However I do have a default system font of 14pt. Not sure if that is related.
Comment 3 Bug Janitor Service 2024-01-21 04:44:42 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/3797
Comment 4 fanzhuyifan 2024-01-21 18:06:43 UTC
Git commit 4e2db8ffaa79ed7398c43f5d603f047c17b99ba9 by Yifan Zhu.
Committed on 21/01/2024 at 18:00.
Pushed by fanzhuyifan into branch 'master'.

kcms/cursortheme: scale combox to fit largest size
FIXED-IN: 6.0

M  +20   -0    kcms/cursortheme/ui/main.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/4e2db8ffaa79ed7398c43f5d603f047c17b99ba9
Comment 5 fanzhuyifan 2024-01-21 18:55:40 UTC
Git commit f11f2b719351a02bf8de27fcb8718dd255ec5dcd by Yifan Zhu.
Committed on 21/01/2024 at 19:07.
Pushed by fanzhuyifan into branch 'Plasma/6.0'.

kcms/cursortheme: scale combox to fit largest size
FIXED-IN: 6.0


(cherry picked from commit 4e2db8ffaa79ed7398c43f5d603f047c17b99ba9)

M  +20   -0    kcms/cursortheme/ui/main.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/f11f2b719351a02bf8de27fcb8718dd255ec5dcd