#pragma once #include "layer.h" #include "sketchlib_global.h" class QJsonObject; class Layer; class SKETCHLIB_EXPORT Group : public Layer { Q_OBJECT Q_PROPERTY(QList layers READ layers CONSTANT) Q_PROPERTY(bool hasClickThrough READ hasClickThrough CONSTANT) public: Q_INVOKABLE explicit Group(QObject *parent = Q_NULLPTR); const QList &layers() const; bool hasClickThrough() const; protected: // BaseContainer interface virtual bool parseProperty(const QString &key, const QJsonValue &value) Q_DECL_OVERRIDE; private: QList m_layers; bool m_hasClickThrough; };