Use more elegant singleton and fix spell bug.

This commit is contained in:
Mentalflow
2024-01-04 00:08:34 +08:00
parent bb19554215
commit 8778ca85a3
13 changed files with 19 additions and 31 deletions

View File

@ -23,7 +23,7 @@ class FluEventBus : public QObject
private:
explicit FluEventBus(QObject *parent = nullptr);
public:
SINGLETONG(FluEventBus)
SINGLETON(FluEventBus)
static FluEventBus *create(QQmlEngine *qmlEngine, QJSEngine *jsEngine){return getInstance();}
Q_INVOKABLE void registerEvent(FluEvent* event);
Q_INVOKABLE void unRegisterEvent(FluEvent* event);