mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-07-04 09:05:30 +08:00
update
This commit is contained in:
@ -5,6 +5,7 @@
|
||||
#include <QtQml/qqml.h>
|
||||
#include <QFont>
|
||||
#include "stdafx.h"
|
||||
#include "singleton.h"
|
||||
|
||||
class FluTextStyle : public QObject
|
||||
{
|
||||
@ -21,13 +22,9 @@ public:
|
||||
QML_SINGLETON
|
||||
private:
|
||||
explicit FluTextStyle(QObject *parent = nullptr);
|
||||
static FluTextStyle* m_instance;
|
||||
public:
|
||||
static FluTextStyle *getInstance();
|
||||
static FluTextStyle *create(QQmlEngine *qmlEngine, QJSEngine *jsEngine)
|
||||
{
|
||||
return getInstance();
|
||||
}
|
||||
SINGLETONG(FluTextStyle)
|
||||
static FluTextStyle *create(QQmlEngine *qmlEngine, QJSEngine *jsEngine){return getInstance();}
|
||||
};
|
||||
|
||||
#endif // FLUTEXTSTYLE_H
|
||||
|
Reference in New Issue
Block a user