diff --git a/libraries/render/src/render/Task.h b/libraries/render/src/render/Task.h index 93f3681c1c..d090938b64 100644 --- a/libraries/render/src/render/Task.h +++ b/libraries/render/src/render/Task.h @@ -12,7 +12,12 @@ #ifndef hifi_render_Task_h #define hifi_render_Task_h -#include // QObject +#include + +#include +#include +#include +#include #include "Context.h" @@ -65,6 +70,11 @@ public: bool alwaysEnabled{ true }; bool enabled{ true }; + + Q_INVOKABLE QString toJSON() { return QJsonDocument(toJsonValue(*this).toObject()).toJson(QJsonDocument::Compact); } + +public slots: + void load(const QJsonValue& json) { qObjectFromJsonValue(json, *this); } }; class TaskConfig : public JobConfig {