2024-04-11 14:51:43 +08:00
|
|
|
#pragma once
|
2023-09-09 20:09:20 +08:00
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include <QQmlEngine>
|
2023-11-24 15:41:44 +08:00
|
|
|
#include "singleton.h"
|
2023-09-09 20:09:20 +08:00
|
|
|
|
2024-02-27 12:23:24 +08:00
|
|
|
/**
|
|
|
|
* @brief The FluentUI class
|
|
|
|
*/
|
2024-04-11 14:51:43 +08:00
|
|
|
class FluentUI : public QObject {
|
2024-06-28 17:09:23 +08:00
|
|
|
Q_OBJECT
|
2024-04-11 14:51:43 +08:00
|
|
|
|
2023-09-09 20:09:20 +08:00
|
|
|
public:
|
2024-06-28 17:09:23 +08:00
|
|
|
SINGLETON(FluentUI)
|
2024-04-11 14:51:43 +08:00
|
|
|
|
2023-09-09 20:09:20 +08:00
|
|
|
Q_DECL_EXPORT void registerTypes(QQmlEngine *engine);
|
|
|
|
|
2024-04-11 14:51:43 +08:00
|
|
|
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";
|
2024-06-28 17:09:23 +08:00
|
|
|
};
|