This commit is contained in:
朱子楚\zhuzi
2023-02-26 23:47:07 +08:00
parent 312418aded
commit 31d563d2f6
51 changed files with 2649 additions and 166 deletions

30
src/FluApp.h Normal file
View File

@ -0,0 +1,30 @@
#ifndef FLUAPP_H
#define FLUAPP_H
#include <QObject>
#include <QWindow>
#include <QJsonObject>
#include "stdafx.h"
class FluApp : public QObject
{
Q_OBJECT
Q_PROPERTY_AUTO(QString,initialRoute);
Q_PROPERTY_AUTO(QJsonObject,routes);
public:
static FluApp *getInstance();
Q_INVOKABLE void run();
Q_INVOKABLE void navigate(const QString& route);
Q_INVOKABLE void setAppWindow(QWindow *window);
private:
static FluApp* m_instance;
QWindow *appWindow;
};
#endif // FLUAPP_H