mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-30 15:06:52 +08:00
27 lines
485 B
C++
27 lines
485 B
C++
#pragma once
|
|
|
|
#include <QObject>
|
|
#include <QQmlEngine>
|
|
#include "singleton.h"
|
|
|
|
/**
|
|
* @brief The FluentUI class
|
|
*/
|
|
class FluentUI : public QObject {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
SINGLETON(FluentUI)
|
|
|
|
Q_DECL_EXPORT void registerTypes(QQmlEngine *engine);
|
|
|
|
void registerTypes(const char *uri) const;
|
|
|
|
void initializeEngine(QQmlEngine *engine, [[maybe_unused]] const char *uri);
|
|
|
|
private:
|
|
const int _major = 1;
|
|
const int _minor = 0;
|
|
const char *_uri = "FluentUI";
|
|
};
|