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.
23 lines
560 B
23 lines
560 B
#ifndef APPLICATIONCONTEXT_H
|
|
#define APPLICATIONCONTEXT_H
|
|
|
|
#include <QQmlApplicationEngine>
|
|
|
|
class ApplicationContext : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
ApplicationContext(QQmlApplicationEngine*);
|
|
~ApplicationContext();
|
|
QQmlApplicationEngine* appEngine();
|
|
static ApplicationContext* GetInstance();
|
|
static void SetApplicationContext(QQmlApplicationEngine*);
|
|
private:
|
|
static ApplicationContext* m_instance;
|
|
QQmlApplicationEngine* m_applicationEngine;
|
|
public slots:
|
|
void QuitApplication();
|
|
};
|
|
|
|
#endif // APPLICATIONCONTEXT_H
|
|
|