27 lines
564 B
C++
27 lines
564 B
C++
#include "imagecollection.h"
|
|
|
|
#include <QDebug>
|
|
#include <QJsonValue>
|
|
#include <QJsonArray>
|
|
|
|
ImageCollection::ImageCollection(QObject *parent) :
|
|
BaseContainer(parent)
|
|
{
|
|
}
|
|
|
|
bool ImageCollection::parseProperty(const QString &key, const QJsonValue &value)
|
|
{
|
|
if(key == QStringLiteral("images"))
|
|
{
|
|
Q_ASSERT(value.isObject());
|
|
for(auto imageValue : value.toArray())
|
|
{
|
|
//TODO
|
|
//qWarning() << "images not implemented";
|
|
}
|
|
return true;
|
|
}
|
|
|
|
return BaseContainer::parseProperty(key, value);
|
|
}
|