Add pause/resume button
ClosedPublic

Authored by fb on Aug 5 2018, 2:19 PM.

Details

Summary

I added 2 new buttons, a resume and a pause button.

FEATURE: 227710

Before:


After:

Diff Detail

Repository
R360 KTeaTime
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
fb created this revision.Aug 5 2018, 2:19 PM
Restricted Application added a subscriber: kde-utils-devel. · View Herald TranscriptAug 5 2018, 2:19 PM
fb requested review of this revision.Aug 5 2018, 2:19 PM
fb edited the summary of this revision. (Show Details)Aug 5 2018, 2:25 PM
aacid added inline comments.Aug 8 2018, 9:17 PM
src/toplevel.cpp
366

Why do you need m_pausedTea, you don't overwrite m_runningTea here so when we go back to resumeTea it'll be fine and doesn't need restoring, no?

fb updated this revision to Diff 39423.EditedAug 10 2018, 5:59 PM
fb edited the summary of this revision. (Show Details)

Removed paused tea.

fb edited the summary of this revision. (Show Details)Aug 10 2018, 6:01 PM
fb marked an inline comment as done.Aug 10 2018, 6:04 PM
fb added inline comments.
src/toplevel.cpp
366

Yes, indeed. I removed it.

fb marked an inline comment as done.Aug 10 2018, 6:04 PM
aacid added a comment.Aug 11 2018, 8:38 PM

i'm not very happy with m_remainingTeaTime as a variable name, because to me it doesn't say "this is only for when it's paused", maybe m_pausedRemainingTeaTime?

fb updated this revision to Diff 39530.Aug 12 2018, 4:19 PM
fb edited the summary of this revision. (Show Details)
  • renamed m_remainingTeaTime to m_pausedRemainingTeaTime
aacid added a comment.Aug 14 2018, 9:07 AM

Looks good, to me, since it seems to me you're serious in being a KDE Developer, i think you should get a Developer account

https://community.kde.org/Infrastructure/Get_a_Developer_Account

Of course this doesn't mean you skip reviews (unless it's a very trivial patch) but makes it easier for me since i then can say "looks good to me" and you commit it to git, instead of me commiting it :D

Does that sound ok to you? I guess you know how to use git just fine

fb added a comment.Aug 14 2018, 6:53 PM

Looks good, to me, since it seems to me you're serious in being a KDE Developer, i think you should get a Developer account

https://community.kde.org/Infrastructure/Get_a_Developer_Account

Of course this doesn't mean you skip reviews (unless it's a very trivial patch) but makes it easier for me since i then can say "looks good to me" and you commit it to git, instead of me commiting it :D

Does that sound ok to you? I guess you know how to use git just fine

Yes, thank you for the suggestion! I will definetly look into it.

aacid accepted this revision.Aug 18 2018, 9:08 PM

I see you've requested your account.

Feel free to commit this once you've got access.

Don't hesitate to ask if you have questions.

This revision is now accepted and ready to land.Aug 18 2018, 9:08 PM
This revision was automatically updated to reflect the committed changes.