#ifndef SANDBOXAPP_H #define SANDBOXAPP_H #include #include #ifdef QT_DEBUG #include #endif class SandboxApp : public QGuiApplication { public: SandboxApp(int &argc, char **argv); void startEngine(); public slots: void restartEngine(); private: std::unique_ptr m_engine; #ifdef QT_DEBUG QFileSystemWatcher m_watcher; #endif const QUrl m_url { #ifdef QT_DEBUG QUrl::fromLocalFile(SANDBOX_SRC_DIR + QStringLiteral("/main.qml")) #else QStringLiteral("qrc:/main.qml") #endif }; void watchDirectoryChanges(const QString& path); }; #endif // SANDBOXAPP_H