Conversation
Signed-off-by: Hitanshu Mehta <[email protected]>
Signed-off-by: Hitanshu Mehta <[email protected]>
Signed-off-by: Hitanshu Mehta <[email protected]>
26ec915 to
c8981b1
Compare
|
MacOs build failure seems unrelated 🤔 |
Clang tidy reported some suggestions that you should either fix or if its false alarm, Suppress it with an inline comment. Former is preferred always. |
|
macOS uses the latest version of clang-tidy, so it's broken now, which is unrelated to this PR. See #999 (comment). CP Editor is in slow development now, so I planned to wait for Arch Linux's clang 13 and resolve it at local. |
|
However, anyone is welcome to fix the clang-tidy issue, while I'm waiting for clang 13 on Arch. It should be fixed in a separate pull request. |
Signed-off-by: Hitanshu Mehta <[email protected]>
|
PR is ready for review :) |
|
And I prefer making |
Signed-off-by: Hitanshu Mehta <[email protected]>
@ouuan |
|
Any progress? |
|
Sorry, I'm taking time 😅 . I was busy with some other stuff. I will start working on the feature this weekend. |
- Removes `Granularity` enum. - Removes `mainLayout` from the member variable of the `Stopwatch` class and declares it as local variable in constructor. - Removes some unnecessary code and does some minor changes. Signed-off-by: Hitanshu Mehta <[email protected]>
- Uses sigleshot timer with interval of `granularity + 10 - accumulator % granularity`. - This timer is trigger on every update if stopwatch is in `Running` state. Signed-off-by: Hitanshu Mehta <[email protected]>
|
@ouuan I have started using the SingleShot timer with an interval of
Please try out this change and let me know your thoughts :) |
ouuan
left a comment
There was a problem hiding this comment.
LGTM, thanks for your contribution!
|
@allcontributors add @hitanshu-mehta as a contributor for ideas and code. |
|
I've put up a pull request to add @hitanshu-mehta! 🎉 |
Description
Stopwatchclass usingQElapsedTimerwhich emits atimesignal every second. It also emits aStateChangedsignal whenever the state of the stopwatch is changed.StopwatchWidgetis updated.Preferences/Actions/Stopwatch.Related Issues / Pull Requests
fixes #1005
Motivation and Context
The stopwatch will be useful to someone who wishes to keep track of the time taken to solve the problem.
How Has This Been Tested?
ManjaroLinux - 21.1.6
Screenshots (if appropriate)
It looks something like this.
Checklist
oldattribute is updated or it is resolved in SettingsUpdater.tr()orQCoreApplication::translate().Additional text