You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
536 B

10 years ago
#ifndef APPLICATIONCONTEXT_H
#define APPLICATIONCONTEXT_H
#include <QQmlApplicationEngine>
10 years ago
class ApplicationCtx : public QObject
10 years ago
{
Q_OBJECT
public:
10 years ago
ApplicationCtx(QQmlApplicationEngine*);
~ApplicationCtx();
10 years ago
QQmlApplicationEngine* appEngine();
10 years ago
static ApplicationCtx* GetInstance();
10 years ago
static void SetApplicationContext(QQmlApplicationEngine*);
private:
10 years ago
static ApplicationCtx* m_instance;
10 years ago
QQmlApplicationEngine* m_applicationEngine;
public slots:
void QuitApplication();
};
10 years ago
#endif // APPLICATIONCTX_H