This commit is contained in:
2026-06-16 14:20:41 +08:00
parent 3085a10af0
commit cc3f6037e7
3 changed files with 21 additions and 2 deletions
+4
View File
@@ -5,6 +5,7 @@
#include <QThread>
#include <qrgb.h>
extern int qInitResources_resource();
namespace YSG {
class LIB_DECL TimerThread : public QThread {
Q_OBJECT
@@ -14,8 +15,11 @@ namespace YSG {
void run() override;
};
class LIB_DECL Global : public QObject, public Psc::Singleton<Global> {
public:
int r = qInitResources_resource();
int mTimerId{};
QMap<QString, TimerThread*> mTimerThreadMap;
int mInterval = 10;