diff options
| author | Crystalwarrior <varsash@gmail.com> | 2020-08-25 12:58:48 +0300 |
|---|---|---|
| committer | Crystalwarrior <varsash@gmail.com> | 2020-08-25 12:58:48 +0300 |
| commit | 6c62980ffc9215a826ee05f9afb9874a96ce60ea (patch) | |
| tree | bbb9a9a693a2aca2494301016862eebc4e2c24e5 | |
| parent | ee3bad44c72329d61a2cb0c4064c22512451372d (diff) | |
forgot to ctrl+s header definitions fuck
| -rw-r--r-- | include/courtroom.h | 3 | ||||
| -rw-r--r-- | src/aoclocklabel.cpp | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/include/courtroom.h b/include/courtroom.h index 15324a0..4835b0a 100644 --- a/include/courtroom.h +++ b/include/courtroom.h @@ -253,9 +253,8 @@ public: void start_clock(); void start_clock(qint64 msecs); - void set_clock(qint64 msecs); - + void pause_clock(); void stop_clock(); qint64 get_ping() { return ping_timer.elapsed(); } diff --git a/src/aoclocklabel.cpp b/src/aoclocklabel.cpp index 7bbf48c..d67ec36 100644 --- a/src/aoclocklabel.cpp +++ b/src/aoclocklabel.cpp @@ -35,6 +35,11 @@ void AOClockLabel::set(int msecs, bool update_text) } } +void AOClockLabel::pause() +{ + timer.stop(); +} + void AOClockLabel::stop() { this->setText("00:00:00.000"); |
