2021-05-04 18:31:15 +00:00
|
|
|
#ifndef SANDBOXAPP_H
|
|
|
|
#define SANDBOXAPP_H
|
|
|
|
|
|
|
|
#include <QGuiApplication>
|
|
|
|
#include <QQmlApplicationEngine>
|
|
|
|
|
2022-08-04 10:54:13 +00:00
|
|
|
#ifdef QT_DEBUG
|
|
|
|
#include <QFileSystemWatcher>
|
|
|
|
#endif
|
|
|
|
|
2021-05-04 18:31:15 +00:00
|
|
|
class SandboxApp : public QGuiApplication
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SandboxApp(int &argc, char **argv);
|
|
|
|
|
|
|
|
void startEngine();
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void restartEngine();
|
|
|
|
|
|
|
|
private:
|
|
|
|
QQmlApplicationEngine m_engine;
|
2022-08-04 10:54:13 +00:00
|
|
|
|
|
|
|
#ifdef QT_DEBUG
|
|
|
|
QFileSystemWatcher m_watcher;
|
|
|
|
#endif
|
2021-05-04 18:31:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SANDBOXAPP_H
|