From fd83b8ffab575b8d6f7169cde784e931e5a1cf7b Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Mon, 18 May 2020 10:49:11 +0200 Subject: [PATCH] made methods which need to be overrideable virtual --- ScStwLibraries/headers/scstwtimer.h | 6 +++--- ScStwLibraries/sources/scstwtimer.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ScStwLibraries/headers/scstwtimer.h b/ScStwLibraries/headers/scstwtimer.h index 48dfd17..8bdf412 100644 --- a/ScStwLibraries/headers/scstwtimer.h +++ b/ScStwLibraries/headers/scstwtimer.h @@ -122,7 +122,7 @@ public slots: * \param timeOfStart the point in time (msecs since epoch) when the timer is supposted to be started * \return false if the timer was not in the required state and therefore not started, true otherwise */ - bool start(double timeOfStart); + virtual bool start(double timeOfStart); /*! * \brief Function to cancel the timer @@ -169,7 +169,7 @@ public slots: * * \return false if the timer was not in the required state and therefore not reset, true otherwise */ - bool reset(); + virtual bool reset(); // -- helper functions -- /*! @@ -274,7 +274,7 @@ protected slots: * * \see ScStwTimer::StopReason */ - bool stop(StopReason reason, double timeOfStop); + virtual bool stop(StopReason reason, double timeOfStop); /*! * \brief Function to stop the timer diff --git a/ScStwLibraries/sources/scstwtimer.cpp b/ScStwLibraries/sources/scstwtimer.cpp index fc3df05..5d05881 100644 --- a/ScStwLibraries/sources/scstwtimer.cpp +++ b/ScStwLibraries/sources/scstwtimer.cpp @@ -53,7 +53,7 @@ void ScStwTimer::handleClimberStart(double timeOfStart) { return; } - // TODO: check if necessary: emit this->reactionTimeChanged(); + emit this->reactionTimeChanged(); } bool ScStwTimer::cancel() {