30 lines
447 B
C++
30 lines
447 B
C++
#ifndef SANDBOXAPP_H
|
|
#define SANDBOXAPP_H
|
|
|
|
#include <QGuiApplication>
|
|
#include <QQmlApplicationEngine>
|
|
|
|
#ifdef QT_DEBUG
|
|
#include <QFileSystemWatcher>
|
|
#endif
|
|
|
|
class SandboxApp : public QGuiApplication
|
|
{
|
|
public:
|
|
SandboxApp(int &argc, char **argv);
|
|
|
|
void startEngine();
|
|
|
|
public slots:
|
|
void restartEngine();
|
|
|
|
private:
|
|
QQmlApplicationEngine m_engine;
|
|
|
|
#ifdef QT_DEBUG
|
|
QFileSystemWatcher m_watcher;
|
|
#endif
|
|
};
|
|
|
|
#endif // SANDBOXAPP_H
|