diff --git a/src/blackmisc/worker.h b/src/blackmisc/worker.h index 02cc1b6e4..7b6315706 100644 --- a/src/blackmisc/worker.h +++ b/src/blackmisc/worker.h @@ -317,6 +317,9 @@ namespace BlackMisc //! Name of the worker const QString &getName() { return m_name; } + //! Owner of the worker + const QObject *owner() const { return m_owner; } + protected: //! Called when the thread is started. virtual void initialize() {} @@ -324,12 +327,6 @@ namespace BlackMisc //! Called when the thread is finished. virtual void cleanup() {} - //! Owner of the worker - //! @{ - const QObject *owner() const { return m_owner; } - QObject *owner() { return m_owner; } - //! @} - QTimer m_updateTimer { this }; //!< timer which can be used by implementing classes private: