| Summary: | Timer countdown not centered | ||
|---|---|---|---|
| Product: | [Applications] KClock | Reporter: | wcyat <wcyat> |
| Component: | General | Assignee: | Devin Lin <espidev> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | hanyoung, social.calamari468, titouan-camus, tmoerschell |
| Priority: | NOR | Keywords: | qt6 |
| Version First Reported In: | 24.01.95 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/utilities/kclock/-/commit/d1889da3cdcea0fea703e40f153c83085c9f89bb | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
| Attachments: |
demo video
Timer not centered |
||
Strange, I cannot seem to reproduce the issue you are having, however I am on Qt 6.6. I'll keep an eye out for this one (In reply to Devin Lin from comment #1) > Strange, I cannot seem to reproduce the issue you are having, however I am > on Qt 6.6. I'll keep an eye out for this one Downgrading to qt 6.6 did solve the issue for me. Created attachment 168479 [details]
Timer not centered
Can reproduce.
Operating System: KDE neon 6.0
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.7.0
Kernel Version: 6.5.0-27-generic (64-bit)
Graphics Platform: Wayland
I found the issue. Will submit a PR shortly if I can manage (never have before).
--- a/src/kclock/qml/timer/TimerComponent.qml
+++ b/src/kclock/qml/timer/TimerComponent.qml
@@ -56,8 +56,8 @@ Rectangle {
anchors.centerIn: parent
id: timerCircle
- implicitWidth: parent.width
- implicitHeight: timerCircleArc.radiusX*2+5
+ implicitWidth: timerCircleArc.radiusX * 2 + timerCirclePath.strokeWidth
+ implicitHeight: timerCircleArc.radiusY * 2 + timerCirclePath.strokeWidth
anchors.horizontalCenter: parent.horizontalCenter
layer.enabled: true
layer.samples: 40
Git commit 424bcb294e7e1bf6466690b1701acc24ac5c7949 by Carl Schwan, on behalf of Thomas Moerschell. Committed on 27/08/2024 at 09:43. Pushed by carlschwan into branch 'release/24.08'. Fix timer circle alignment M +2 -2 src/kclock/qml/timer/TimerComponent.qml https://invent.kde.org/utilities/kclock/-/commit/424bcb294e7e1bf6466690b1701acc24ac5c7949 Git commit d1889da3cdcea0fea703e40f153c83085c9f89bb by Devin Lin, on behalf of Thomas Moerschell. Committed on 29/09/2024 at 23:57. Pushed by devinlin into branch 'master'. Fix timer circle alignment M +2 -2 src/kclock/qml/timer/TimerComponent.qml https://invent.kde.org/utilities/kclock/-/commit/d1889da3cdcea0fea703e40f153c83085c9f89bb *** Bug 487164 has been marked as a duplicate of this bug. *** |
Created attachment 165729 [details] demo video SUMMARY Timer countdown not centered. STEPS TO REPRODUCE 1. install kde-unstable/kclock 2. open kclock and maximize it (about 1920x1080) 3. go to "Timers" tab 4. create a timer 5. start the timer OBSERVED RESULT The countdown text is not centered and is on the left. Going back and re-opening it twice makes it go back to center. EXPECTED RESULT The countdown text should be centered. SOFTWARE/OS VERSIONS Linux/KDE Plasma: (available in About System) KDE Plasma Version: 5.93.0 KDE Frameworks Version: 5.249.0 Qt Version: 6.7.0 ADDITIONAL INFORMATION Using plasma 6.0 RC 2