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

@ -104,7 +104,7 @@ class FluNetwork : public QObject
private:
explicit FluNetwork(QObject *parent = nullptr);
public:
SINGLETONG(FluNetwork)
SINGLETON(FluNetwork)
static FluNetwork *create(QQmlEngine *qmlEngine, QJSEngine *jsEngine){return getInstance();}
Q_INVOKABLE NetworkParams* get(const QString& url);
Q_INVOKABLE NetworkParams* head(const QString& url);