mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-23 19:20:59 +08:00
31 lines
517 B
C
31 lines
517 B
C
|
#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
|