24 lines
359 B
C++
24 lines
359 B
C++
#ifndef THREADCLOCK_H
|
|
#define THREADCLOCK_H
|
|
|
|
#include <QObject>
|
|
#include <QThread>
|
|
|
|
class ThreadClock : public QThread
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit ThreadClock(QObject *parent = nullptr);
|
|
|
|
|
|
QString name() const;
|
|
void setName(const QString &newName);
|
|
|
|
private:
|
|
QString m_name;
|
|
protected:
|
|
void run() override;
|
|
};
|
|
|
|
#endif // THREADCLOCK_H
|