[plasma/plasma-workspace/Plasma/6.7] applets/digital-clock: applets/digital-clock: Fix label not adjusting in size when showSeconds is changed
Nate Graham <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 5cef3835c5b6eaa8d1f6c34391e413d9b844be94 by Nate Graham. Committed on 22/07/2026 at 03:40. Pushed by ngraham into branch 'Plasma/6.7'. applets/digital-clock: Fix label not adjusting in size when showSeconds is changed Label sizing did not adjust to appropriate width when showSeconds was changed. The solution was to just call main.setupLabels() when showSeconds is changed. BUG: 523010 FIXED-IN: 6.6.7 (cherry picked from commit 28a42b4d5f9d2ce6ac11d4a3cd03b98216f26992) ef10f6b5 Label sizing did not adjust to appropriate width when showSeconds was changed.... Co-authored-by: Hunter White <[email protected]> M +4 -0 applets/digital-clock/DigitalClock.qml https://invent.kde.org/plasma/plasma-workspace/-/commit/5cef3835c5b6eaa8d1f6c34391e413d9b844be94 diff --git a/applets/digital-clock/DigitalClock.qml b/applets/digital-clock/DigitalClock.qml index 04fa6814cd..5c153cbebc 100644 --- a/applets/digital-clock/DigitalClock.qml +++ b/applets/digital-clock/DigitalClock.qml @@ -128,6 +128,10 @@ MouseArea { function onUse24hFormatChanged() { main.timeFormatCorrection(); } + + function onShowSecondsChanged() { + main.setupLabels(); + } } function pointToPixel(pointSize: int): int {