Files
Obsidian/threadclock.h
2025-08-23 15:15:57 +08:00

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