This commit is contained in:
zhuzihcu
2023-05-11 18:24:58 +08:00
parent dd16b4703d
commit f8146f24ea
154 changed files with 211 additions and 829 deletions

View File

@ -46,8 +46,15 @@ class FluColors : public QObject
Q_PROPERTY_AUTO(FluColorSet*,Green);
QML_NAMED_ELEMENT(FluColors)
QML_SINGLETON
public:
private:
explicit FluColors(QObject *parent = nullptr);
static FluColors* m_instance;
public:
static FluColors *getInstance();
static FluColors *create(QQmlEngine *qmlEngine, QJSEngine *jsEngine)
{
return getInstance();
}
};
#endif // FLUCOLORS_H