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: