Bug 492451

Summary: Content in edit command dialog is cut off
Product: [Applications] systemsettings Reporter: Nicolas Fella <nicolas.fella>
Component: kcm_keysAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: duha.bugs, fanzhuyifan, kde, nate
Priority: NOR Keywords: regression
Version First Reported In: master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.2.0
Sentry Crash Report:
Attachments: Screenshot

Description Nicolas Fella 2024-08-31 10:15:30 UTC
Created attachment 173163 [details]
Screenshot

STEPS TO REPRODUCE
1. Open System Setting at its default size, in German 
2. Go to shortcuts KCM
3. Edit a command entry

OBSERVED RESULT
Stuff is cut off at the right, see screenshot

EXPECTED RESULT
it looks nice

SOFTWARE/OS VERSIONS
KDE Plasma Version: master
KDE Frameworks Version: master
Qt Version: 6.8

ADDITIONAL INFORMATION
Comment 1 duha.bugs 2024-08-31 11:16:44 UTC
Seems like a more recent regression. I can reproduce with master but not with 6.1
Comment 2 Nate Graham 2024-09-04 03:48:55 UTC
Looks like a bug in the latest implementation of the dialog; will fix.
Comment 3 Nate Graham 2024-09-04 03:50:56 UTC
Git commit feb2f2803ea4d7c9e0f8aa0ceb1478ab42c91b87 by Nate Graham.
Committed on 04/09/2024 at 03:49.
Pushed by ngraham into branch 'master'.

kcms/keys: fix script dialog sizing and label wrapping behavior

The dialog had a hardcoded width and a label with no width and wrap mode
set, which together are a recipe for sadness.

Set the label up for word-wrapping if needed, and remove the hardcoded
dialog size which turns out to be unnecessary anyway.
FIXED-IN: 6.2.0

M  +2    -2    kcms/keys/ui/main.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/feb2f2803ea4d7c9e0f8aa0ceb1478ab42c91b87