From c0a6574c80c4b005309fac808799ea9972619681 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Mon, 4 Sep 2017 14:58:03 +0200 Subject: [PATCH] Ref T148, public getName so it can be used in logging --- src/blackmisc/worker.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/blackmisc/worker.h b/src/blackmisc/worker.h index 4e6639c18..431330556 100644 --- a/src/blackmisc/worker.h +++ b/src/blackmisc/worker.h @@ -302,6 +302,9 @@ namespace BlackMisc //! \threadsafe void startUpdating(int updateTimeSecs); + //! Name of the worker + const QString &getName() { return m_name; } + protected: //! Called when the thread is started. virtual void initialize() {} @@ -309,9 +312,6 @@ namespace BlackMisc //! Called when the thread is finished. virtual void cleanup() {} - //! Name of the worker - const QString &getName() { return m_name; } - QTimer m_updateTimer { this }; //!< timer which can be used by implementing classes private: