#include "sharedstyle.h" #include #include #include "containerfactory.h" #include "style.h" SharedStyle::SharedStyle(QObject *parent) : BaseContainer(parent) { } const QString &SharedStyle::name() const { return m_name; } Style *SharedStyle::value() const { return m_value; } bool SharedStyle::parseProperty(const QString &key, const QJsonValue &value) { if(key == QStringLiteral("name")) { Q_ASSERT(value.isString()); m_name = value.toString(); return true; } if(key == QStringLiteral("value")) { Q_ASSERT(value.isObject()); m_value = ContainerFactory::createContainer